diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2018-03-27 01:57:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-28 12:38:00 (GMT) |
commit | 7b173a29332af37eb285d8cf5924a44be3a944dd (patch) | |
tree | 8098211587e62bc39d91f6c0fbe0b03f7c055d8e /Help/manual | |
parent | 6792c7787aedc0fb2a32b6ca563917f7447f2e80 (diff) | |
download | CMake-7b173a29332af37eb285d8cf5924a44be3a944dd.zip CMake-7b173a29332af37eb285d8cf5924a44be3a944dd.tar.gz CMake-7b173a29332af37eb285d8cf5924a44be3a944dd.tar.bz2 |
genex: Add TARGET_NAME_IF_EXISTS expression
Define `$<TARGET_NAME_IF_EXISTS:tgt>` to mean `tgt` if the target
exists and otherwise an empty string.
Diffstat (limited to 'Help/manual')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index d3514ab..0e73bd2 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -274,6 +274,9 @@ Available output expressions are: Marks ``...`` as being the name of a target. This is required if exporting targets to multiple dependent export sets. The ``...`` must be a literal name of a target- it may not contain generator expressions. +``$<TARGET_NAME_IF_EXISTS:...>`` + Expands to the ``...`` if the given target exists, an empty string + otherwise. ``$<LINK_ONLY:...>`` Content of ``...`` except when evaluated in a link interface while propagating :ref:`Target Usage Requirements`, in which case it is the |