Skip to content

Commit

Permalink
Build-time RMW selection does not need ament_index_cpp (#210)
Browse files Browse the repository at this point in the history
So don't find_package(..) it if RMW_IMPLEMENTATION_DISABLE_RUNTIME_SELECTION is OFF.

Signed-off-by: gavanderhoorn <g.a.vanderhoorn@tudelft.nl>
  • Loading branch information
gavanderhoorn committed Nov 4, 2022
1 parent 191ca8d commit 11652db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_implementation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
endif()

find_package(ament_cmake REQUIRED)
find_package(ament_index_cpp REQUIRED)
find_package(rmw_implementation_cmake REQUIRED)

if(BUILD_TESTING)
Expand Down Expand Up @@ -47,6 +46,7 @@ if(RMW_IMPLEMENTATION_DISABLE_RUNTIME_SELECTION)
else()
message(STATUS "Runtime selection of RMW enabled")

find_package(ament_index_cpp REQUIRED)
find_package(rcpputils REQUIRED)
find_package(rcutils REQUIRED)
find_package(rmw REQUIRED)
Expand Down

0 comments on commit 11652db

Please sign in to comment.