Skip to content

XCode: ensure LINK_LIBRARY genex is usable with XCODE_LINK_BUILD_PHASE_MODE

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

Merge request reports