File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments