From 2745f65309ddaa6e9c6282e1d0f41075cfb916a4 Mon Sep 17 00:00:00 2001 From: Mario Dominguez Date: Thu, 28 Nov 2024 08:55:06 +0100 Subject: [PATCH] Refs #22341: Check if target exists before evaluating its properties Signed-off-by: Mario Dominguez --- src/cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt index 5ac4799fa84..bd364a73194 100644 --- a/src/cpp/CMakeLists.txt +++ b/src/cpp/CMakeLists.txt @@ -468,7 +468,7 @@ target_compile_definitions(${PROJECT_NAME} INTERFACE $<$:${PROJECT_NAME_UPPER}_NO_LIB> PUBLIC - $<$,SHARED_LIBRARY>:${PROJECT_NAME_UPPER}_DYN_LINK> + $<$:$<$,SHARED_LIBRARY>:${PROJECT_NAME_UPPER}_DYN_LINK>> ) # Define public headers