From 2739327ee9af0256c7edcbccb810513af0018851 Mon Sep 17 00:00:00 2001 From: Alberto Soragna Date: Mon, 5 Aug 2024 12:07:07 -0700 Subject: [PATCH] fix rclcpp/test/rclcpp/CMakeLists.txt to check for the correct targets existance (#2596) Signed-off-by: Alberto Soragna --- rclcpp/test/rclcpp/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rclcpp/test/rclcpp/CMakeLists.txt b/rclcpp/test/rclcpp/CMakeLists.txt index 756e1c67c6..217e816e63 100644 --- a/rclcpp/test/rclcpp/CMakeLists.txt +++ b/rclcpp/test/rclcpp/CMakeLists.txt @@ -468,7 +468,7 @@ ament_add_gtest( executors/test_executors_timer_cancel_behavior.cpp APPEND_LIBRARY_DIRS "${append_library_dirs}" TIMEOUT 180) -if(TARGET test_executors) +if(TARGET test_executors_timer_cancel_behavior) target_link_libraries(test_executors_timer_cancel_behavior ${PROJECT_NAME} ${rosgraph_msgs_TARGETS}) endif() @@ -477,7 +477,7 @@ ament_add_gtest( executors/test_executors_callback_group_behavior.cpp APPEND_LIBRARY_DIRS "${append_library_dirs}" TIMEOUT 180) -if(TARGET test_executors) +if(TARGET test_executors_callback_group_behavior) target_link_libraries(test_executors_callback_group_behavior ${PROJECT_NAME}) endif() @@ -486,7 +486,7 @@ ament_add_gtest( executors/test_executors_intraprocess.cpp APPEND_LIBRARY_DIRS "${append_library_dirs}" TIMEOUT 180) -if(TARGET test_executors) +if(TARGET test_executors_intraprocess) target_link_libraries(test_executors_intraprocess ${PROJECT_NAME} ${test_msgs_TARGETS}) endif() @@ -496,7 +496,7 @@ ament_add_gtest( executors/test_waitable.cpp APPEND_LIBRARY_DIRS "${append_library_dirs}" TIMEOUT 180) -if(TARGET test_executors) +if(TARGET test_executors_busy_waiting) target_link_libraries(test_executors_busy_waiting ${PROJECT_NAME}) endif()