Skip to content

Commit

Permalink
Fix if(TARGET ...) condition for test (#447) (#449)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
(cherry picked from commit b6ba6a1)

Co-authored-by: Christophe Bedard <[email protected]>
  • Loading branch information
mergify[bot] and christophebedard authored Feb 15, 2024
1 parent 9e6e37b commit 2193d51
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 @@ -418,7 +418,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 2193d51

Please sign in to comment.