Skip to content

Commit

Permalink
Use modern CMake targets for linking. (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Sep 20, 2023
1 parent 817a22a commit bfc77e7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rmw_zenoh_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ find_package(rmw_fastrtps_shared_cpp REQUIRED)
find_package(zenoh_c_vendor REQUIRED)
find_package(zenohc REQUIRED)



add_library(rmw_zenoh_cpp SHARED
src/detail/identifier.cpp
src/detail/guard_condition.cpp
Expand All @@ -55,9 +53,8 @@ target_link_libraries(rmw_zenoh_cpp
rosidl_typesupport_fastrtps_c::rosidl_typesupport_fastrtps_c
rosidl_typesupport_fastrtps_cpp::rosidl_typesupport_fastrtps_cpp
rmw::rmw
${rmw_dds_common_TARGETS}
${rmw_fastrtps_shared_cpp_TARGETS}
${rmw_fastrtps_shared_cpp_LIBRARIES}
rmw_dds_common::rmw_dds_common_library
rmw_fastrtps_shared_cpp::rmw_fastrtps_shared_cpp
zenohc::lib
)

Expand Down

0 comments on commit bfc77e7

Please sign in to comment.