Skip to content

Xcode: add support for embedding dynamic libraries

Lucas SOLTIC requested to merge lsoltic/cmake:xcode-embed-libraries into master

This addresses issue #22223 (closed). Now both frameworks and libraries are handled by XCODE_EMBED_FRAMEWORKS.

@craig.scott Pinging you on this as you were willing to review the merge request.

Open question: I'm wondering if documentation should be updated to mention that support from embedded libraries is actually new in some version after 3.20, but such change wouldn't spread to previous versions where documentation is inaccurate.

Note: tests are added to EmbedFrameworks*.cmake files instead of new files as from Xcode's point of view, libraries are still part of "Embed Frameworks" build phase.

Merge request reports