Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiling on RHEL-8. #549

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions velodyne_pointcloud/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ else()
set(YAML_CPP_TARGET ${YAML_CPP_LIBRARIES})
endif()

# Work around broken find module in AlmaLinux/RHEL eigen3-devel from PowerTools repo
find_package(Eigen3 QUIET NO_MODULE)
if(NOT Eigen3_FOUND)
find_package(Eigen3 REQUIRED)
endif()

add_library(velodyne_rawdata SHARED
src/lib/rawdata.cpp
src/lib/calibration.cpp)
Expand All @@ -41,6 +47,7 @@ target_include_directories(velodyne_rawdata PUBLIC
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>")
target_link_libraries(velodyne_rawdata PUBLIC
angles::angles
Eigen3::Eigen
${geometry_msgs_TARGETS}
${PCL_LIBRARIES}
rclcpp::rclcpp
Expand All @@ -59,6 +66,7 @@ target_include_directories(velodyne_cloud_types PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>")
target_link_libraries(velodyne_cloud_types PUBLIC
Eigen3::Eigen
${PCL_LIBRARIES}
rclcpp::rclcpp
${sensor_msgs_TARGETS}
Expand All @@ -73,6 +81,7 @@ target_include_directories(transform PUBLIC
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>")
target_link_libraries(transform PUBLIC
diagnostic_updater::diagnostic_updater
Eigen3::Eigen
message_filters::message_filters
rclcpp::rclcpp
tf2::tf2
Expand Down