Skip to content

Commit 7423489

Browse files
authored
Merge pull request #50 from traversaro/patch-1
[ros2] Actully search for octomap in CMakeLists.txt
2 parents 62ea089 + c0452f7 commit 7423489

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ ament_auto_find_build_dependencies()
1616
find_package(Qt5 REQUIRED COMPONENTS Widgets)
1717
set(CMAKE_AUTOMOC ON)
1818

19+
# liboctomap-dev is listed in the package.xml, but the CMake package name is octomap,
20+
# so we need to find it explicitly as ament_auto_find_build_dependencies just tries to find
21+
# it as liboctomap-dev (without finding anything)
22+
find_package(octomap REQUIRED)
23+
1924
set(octomap_rviz_plugins_headers_to_moc
2025
include/octomap_rviz_plugins/occupancy_grid_display.hpp
2126
include/octomap_rviz_plugins/occupancy_map_display.hpp

0 commit comments

Comments
 (0)