Genex LINK_LIBRARY: Add support for framework with postfix

This commit is contained in:
Marc Chevrier
2022-09-15 17:09:07 +02:00
parent 2ce95133d6
commit 0bd3efffbc
9 changed files with 160 additions and 56 deletions

View File

@@ -45,8 +45,8 @@
wildcard, and optional parts are shown as ``[...]``):
* ``[/path/to/]FwName[.framework]``
* ``[/path/to/]FwName.framework/FwName``
* ``[/path/to/]FwName.framework/Versions/*/FwName``
* ``[/path/to/]FwName.framework/FwName[suffix]``
* ``[/path/to/]FwName.framework/Versions/*/FwName[suffix]``
Note that CMake recognizes and automatically handles framework targets,
even without using the ``$<LINK_LIBRARY:FRAMEWORK,...>`` expression.
@@ -59,6 +59,11 @@
``$<LINK_LIBRARY:FRAMEWORK,...>`` for file paths so that the expected
behavior is clear.
.. versionadded:: 3.25
The :prop_tgt:`FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>` target property as
well as the ``suffix`` of the framework library name are now supported by
the ``FRAMEWORK`` features.
``NEEDED_FRAMEWORK``
This is similar to the ``FRAMEWORK`` feature, except it forces the linker
to link with the framework even if no symbols are used from it. It uses