From 786e882d8adcebf7b88e81d9283253567aedf26e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 15 Feb 2024 12:40:56 -0600 Subject: [PATCH] Fix if(TARGET ...) condition for test (#447) (#448) 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 334d6ff0..8d3e87b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})