Skip to content

Commit 5055b49

Browse files
Mario-DLmergify[bot]
authored andcommitted
Fix cmake generator evaluation (#5435)
Signed-off-by: Mario Dominguez <[email protected]> (cherry picked from commit dbb87b7)
1 parent 2364da6 commit 5055b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ target_compile_definitions(${PROJECT_NAME}
467467
INTERFACE
468468
$<$<BOOL:${WIN32}>:${PROJECT_NAME_UPPER}_NO_LIB>
469469
PUBLIC
470-
$<$<STREQUAL:$<TARGET_PROPERTY:${PROJECT_NAME},TYPE>,SHARED_LIBRARY>:${PROJECT_NAME_UPPER}_DYN_LINK>
470+
$<$<TARGET_EXISTS:${PROJECT_NAME}>:$<$<STREQUAL:$<TARGET_PROPERTY:${PROJECT_NAME},TYPE>,SHARED_LIBRARY>:${PROJECT_NAME_UPPER}_DYN_LINK>>
471471
)
472472

473473
# Define public headers

0 commit comments

Comments
 (0)