Skip to content

Commit 2193d51

Browse files
Fix if(TARGET ...) condition for test (ros2#447) (ros2#449)
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 9e6e37b commit 2193d51

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
@@ -418,7 +418,7 @@ if(BUILD_TESTING)
418418
endmacro()
419419

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

0 commit comments

Comments
 (0)