mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 00:00:39 -05:00
Merge topic 'target-bundle-dir-name-genex'
997af2e1a6Genex: Add TARGET_BUNDLE_DIR_NAME627b2eba6cHelp: Make TARGET_BUNDLE[_CONTENT]_DIR examples more precise Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7177
This commit is contained in:
@@ -1019,8 +1019,19 @@ which is just the string ``tgt``.
|
||||
|
||||
.. versionadded:: 3.9
|
||||
|
||||
Full path to the bundle directory (``my.app``, ``my.framework``, or
|
||||
``my.bundle``) where ``tgt`` is the name of a target.
|
||||
Full path to the bundle directory (``/path/to/my.app``,
|
||||
``/path/to/my.framework``, or ``/path/to/my.bundle``),
|
||||
where ``tgt`` is the name of a target.
|
||||
|
||||
Note that ``tgt`` is not added as a dependency of the target this
|
||||
expression is evaluated on (see policy :policy:`CMP0112`).
|
||||
|
||||
.. genex:: $<TARGET_BUNDLE_DIR_NAME:tgt>
|
||||
|
||||
.. versionadded:: 3.24
|
||||
|
||||
Name of the bundle directory (``my.app``, ``my.framework``, or
|
||||
``my.bundle``), where ``tgt`` is the name of a target.
|
||||
|
||||
Note that ``tgt`` is not added as a dependency of the target this
|
||||
expression is evaluated on (see policy :policy:`CMP0112`).
|
||||
@@ -1030,10 +1041,11 @@ which is just the string ``tgt``.
|
||||
.. versionadded:: 3.9
|
||||
|
||||
Full path to the bundle content directory where ``tgt`` is the name of a
|
||||
target. For the macOS SDK it leads to ``my.app/Contents``, ``my.framework``,
|
||||
or ``my.bundle/Contents``. For all other SDKs (e.g. iOS) it leads to
|
||||
``my.app``, ``my.framework``, or ``my.bundle`` due to the flat bundle
|
||||
structure.
|
||||
target. For the macOS SDK it leads to ``/path/to/my.app/Contents``,
|
||||
``/path/to/my.framework``, or ``/path/to/my.bundle/Contents``.
|
||||
For all other SDKs (e.g. iOS) it leads to ``/path/to/my.app``,
|
||||
``/path/to/my.framework``, or ``/path/to/my.bundle`` due to the flat
|
||||
bundle structure.
|
||||
|
||||
Note that ``tgt`` is not added as a dependency of the target this
|
||||
expression is evaluated on (see policy :policy:`CMP0112`).
|
||||
|
||||
@@ -18,6 +18,7 @@ file name components no longer add a dependency on the evaluated target.
|
||||
- ``TARGET_PDB_FILE_NAME``
|
||||
- ``TARGET_PDB_FILE_DIR``
|
||||
- ``TARGET_BUNDLE_DIR``
|
||||
- ``TARGET_BUNDLE_DIR_NAME``
|
||||
- ``TARGET_BUNDLE_CONTENT_DIR``
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
target-bundle-dir-name-genex
|
||||
----------------------------
|
||||
|
||||
* Added the new :genex:`TARGET_BUNDLE_DIR_NAME` generator expression
|
||||
which evaluates to the name of the bundle directory for a given bundle
|
||||
target.
|
||||
Reference in New Issue
Block a user