Skip to content

Commit 20cdc43

Browse files
committed
WIP
1 parent 61ecdda commit 20cdc43

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

extension_config.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ if (EXISTS ${INFERA_RUST_LIB})
118118
add_link_options($<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-lpthread>)
119119
add_link_options($<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-ldl>)
120120
add_link_options($<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-lm>)
121-
if(APPLE)
122-
add_link_options($<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-framework Security>)
123-
add_link_options($<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-framework CoreFoundation>)
124-
add_link_options($<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-framework SystemConfiguration>)
125-
endif()
121+
# Apple framework flags are NOT added via add_link_options: CMake splits
122+
# "-framework Security" at the space inside generator expressions, producing
123+
# the literal token '$<0:-framework' instead of an empty string. The frameworks
124+
# are already propagated to all targets by link_libraries() and
125+
# INTERFACE_LINK_LIBRARIES above, so no add_link_options entry is needed.
126126
else()
127127
add_link_options($<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:${INFERA_RUST_LIB}>)
128128
endif()

0 commit comments

Comments
 (0)