Skip to content

Commit 786e882

Browse files
Fix if(TARGET ...) condition for test (ros2#447) (ros2#448)
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai> (cherry picked from commit b6ba6a1) Co-authored-by: Christophe Bedard <christophe.bedard@apex.ai>
1 parent cd0b5e2 commit 786e882

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ if(BUILD_TESTING)
416416
endmacro()
417417

418418
ament_add_gtest(test_shared_library_preloaded test/test_shared_library.cpp)
419-
if(TARGET test_shared_library_in_load_paths)
419+
if(TARGET test_shared_library_preloaded)
420420
add_dummy_shared_library(dummy_shared_library_preloaded)
421421
set_target_properties(dummy_shared_library_preloaded PROPERTIES
422422
LIBRARY_OUTPUT_DIRECTORY ${test_libraries_dir})

0 commit comments

Comments
 (0)