From aae9ad5dfc7b9058bf28cefc1d14d5c810b220cf Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 1 Feb 2024 16:52:47 -0800 Subject: [PATCH] Fix if(TARGET ...) condition for test (#447) Signed-off-by: Christophe Bedard (cherry picked from commit b6ba6a1f1ef243bcb8a418ddfa7aaf09b92564d1) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35d4df0c..700459a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})