XCode: ensure LINK_LIBRARY genex is usable with XCODE_LINK_BUILD_PHASE_MODE
requested to merge marc.chevrier/cmake:XCode-XCODE_LINK_BUILD_PHASE_MODE-and-LINK_LIBRARY-genex into master
Linking libraries with $<LINK_LIBRARY>
genex must be handled correctly when XCODE_LINK_BUILD_PHASE_MODE
target property is set to BUILT_ONLY
or KNOWN_LOCACTION
.
when the specified feature is WEAK_FRAMEWORK
or WEAK_LIBRARY
, the libraries must be listed in the Link Binary With Libraries
build phase with the status Optional
.
Fixes: #24176 (closed)
Backport: release
Edited by Marc Chevrier