mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
Help: Use direct refs to genexes instead of `$<GENEX-NAME>`
This commit is contained in:
@@ -49,14 +49,14 @@
|
||||
* ``[/path/to/]FwName.framework/Versions/*/FwName[suffix]``
|
||||
|
||||
Note that CMake recognizes and automatically handles framework targets,
|
||||
even without using the ``$<LINK_LIBRARY:FRAMEWORK,...>`` expression.
|
||||
even without using the :genex:`$<LINK_LIBRARY:FRAMEWORK,...>` expression.
|
||||
The generator expression can still be used with a CMake target if the
|
||||
project wants to be explicit about it, but it is not required to do so.
|
||||
The linker command line may have some differences between using the
|
||||
generator expression or not, but the final result should be the same.
|
||||
On the other hand, if a file path is given, CMake will recognize some paths
|
||||
automatically, but not all cases. The project may want to use
|
||||
``$<LINK_LIBRARY:FRAMEWORK,...>`` for file paths so that the expected
|
||||
:genex:`$<LINK_LIBRARY:FRAMEWORK,...>` for file paths so that the expected
|
||||
behavior is clear.
|
||||
|
||||
.. versionadded:: 3.25
|
||||
|
||||
Reference in New Issue
Block a user