Genex: Add TARGET_BUNDLE_DIR_NAME

Evaluate to the name of the bundle directory for a given bundle target.

Fixes: #23409
This commit is contained in:
Ben Leadbetter
2022-04-14 15:44:49 +02:00
committed by Brad King
parent 627b2eba6c
commit 997af2e1a6
12 changed files with 88 additions and 1 deletions
@@ -1026,6 +1026,16 @@ which is just the string ``tgt``.
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`).
.. genex:: $<TARGET_BUNDLE_CONTENT_DIR:tgt>
.. versionadded:: 3.9
+1
View File
@@ -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.