Skip to content

Commit

Permalink
Fix if(TARGET ...) condition for test (#447) (#448)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
(cherry picked from commit b6ba6a1)

Co-authored-by: Christophe Bedard <christophe.bedard@apex.ai>
  • Loading branch information
mergify[bot] and christophebedard authored Feb 15, 2024
1 parent cd0b5e2 commit 786e882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ if(BUILD_TESTING)
endmacro()

ament_add_gtest(test_shared_library_preloaded test/test_shared_library.cpp)
if(TARGET test_shared_library_in_load_paths)
if(TARGET test_shared_library_preloaded)
add_dummy_shared_library(dummy_shared_library_preloaded)
set_target_properties(dummy_shared_library_preloaded PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${test_libraries_dir})
Expand Down

0 comments on commit 786e882

Please sign in to comment.