Skip to content

Commit 2739327

Browse files
authored
fix rclcpp/test/rclcpp/CMakeLists.txt to check for the correct targets existance (#2596)
Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>
1 parent 4e4f0cf commit 2739327

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rclcpp/test/rclcpp/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ ament_add_gtest(
468468
executors/test_executors_timer_cancel_behavior.cpp
469469
APPEND_LIBRARY_DIRS "${append_library_dirs}"
470470
TIMEOUT 180)
471-
if(TARGET test_executors)
471+
if(TARGET test_executors_timer_cancel_behavior)
472472
target_link_libraries(test_executors_timer_cancel_behavior ${PROJECT_NAME} ${rosgraph_msgs_TARGETS})
473473
endif()
474474

@@ -477,7 +477,7 @@ ament_add_gtest(
477477
executors/test_executors_callback_group_behavior.cpp
478478
APPEND_LIBRARY_DIRS "${append_library_dirs}"
479479
TIMEOUT 180)
480-
if(TARGET test_executors)
480+
if(TARGET test_executors_callback_group_behavior)
481481
target_link_libraries(test_executors_callback_group_behavior ${PROJECT_NAME})
482482
endif()
483483

@@ -486,7 +486,7 @@ ament_add_gtest(
486486
executors/test_executors_intraprocess.cpp
487487
APPEND_LIBRARY_DIRS "${append_library_dirs}"
488488
TIMEOUT 180)
489-
if(TARGET test_executors)
489+
if(TARGET test_executors_intraprocess)
490490
target_link_libraries(test_executors_intraprocess ${PROJECT_NAME} ${test_msgs_TARGETS})
491491
endif()
492492

@@ -496,7 +496,7 @@ ament_add_gtest(
496496
executors/test_waitable.cpp
497497
APPEND_LIBRARY_DIRS "${append_library_dirs}"
498498
TIMEOUT 180)
499-
if(TARGET test_executors)
499+
if(TARGET test_executors_busy_waiting)
500500
target_link_libraries(test_executors_busy_waiting ${PROJECT_NAME})
501501
endif()
502502

0 commit comments

Comments
 (0)