From bfc77e7109d5df2d123ae8d70260a2ea14956bdc Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Tue, 19 Sep 2023 23:59:49 -0400 Subject: [PATCH] Use modern CMake targets for linking. (#4) Signed-off-by: Chris Lalancette --- rmw_zenoh_cpp/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rmw_zenoh_cpp/CMakeLists.txt b/rmw_zenoh_cpp/CMakeLists.txt index b6a00b5d..6e96da22 100644 --- a/rmw_zenoh_cpp/CMakeLists.txt +++ b/rmw_zenoh_cpp/CMakeLists.txt @@ -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 @@ -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 )