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