From 2193d51a3155942d8a191212c1e88db6965009c8 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 15 Feb 2024 12:41:01 -0600 Subject: [PATCH] Fix if(TARGET ...) condition for test (#447) (#449) Signed-off-by: Christophe Bedard (cherry picked from commit b6ba6a1f1ef243bcb8a418ddfa7aaf09b92564d1) Co-authored-by: Christophe Bedard --- 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})