diff options
author | Ben Leadbetter <ben.leadbetter@native-instruments.com> | 2022-04-14 13:44:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-04-22 13:23:46 (GMT) |
commit | 997af2e1a6b8f2d644dfe1734653398633cafe52 (patch) | |
tree | ec45b931a94389ccfe9b4cecde7ac202c4f06d07 /Help | |
parent | 627b2eba6c2e8790ba7091f5123e114e9363726d (diff) | |
download | CMake-997af2e1a6b8f2d644dfe1734653398633cafe52.zip CMake-997af2e1a6b8f2d644dfe1734653398633cafe52.tar.gz CMake-997af2e1a6b8f2d644dfe1734653398633cafe52.tar.bz2 |
Genex: Add TARGET_BUNDLE_DIR_NAME
Evaluate to the name of the bundle directory for a given bundle target.
Fixes: #23409
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 10 | ||||
-rw-r--r-- | Help/policy/CMP0112.rst | 1 | ||||
-rw-r--r-- | Help/release/dev/target-bundle-dir-name-genex.rst | 6 |
3 files changed, 17 insertions, 0 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index c83eb87..1ef1ec8 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -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 diff --git a/Help/policy/CMP0112.rst b/Help/policy/CMP0112.rst index 5b00d07..25c3896 100644 --- a/Help/policy/CMP0112.rst +++ b/Help/policy/CMP0112.rst @@ -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`` diff --git a/Help/release/dev/target-bundle-dir-name-genex.rst b/Help/release/dev/target-bundle-dir-name-genex.rst new file mode 100644 index 0000000..0ae835a --- /dev/null +++ b/Help/release/dev/target-bundle-dir-name-genex.rst @@ -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. |