diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2018-03-07 04:01:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-09 13:24:05 (GMT) |
commit | 7fec336bf72684d5b2610e7d6d6041f40c61e833 (patch) | |
tree | 896671033241d8b44347fa0dfb6fa0df32ddca8a /Help/manual | |
parent | 674c5b306671129bc4a854137c304f19e2c3bf65 (diff) | |
download | CMake-7fec336bf72684d5b2610e7d6d6041f40c61e833.zip CMake-7fec336bf72684d5b2610e7d6d6041f40c61e833.tar.gz CMake-7fec336bf72684d5b2610e7d6d6041f40c61e833.tar.bz2 |
genex: Add TARGET_EXISTS to check for target existence
Define `$<TARGET_EXISTS:a>` to `1` if `a` is an existed target name,
else `0`.
Diffstat (limited to 'Help/manual')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index 04cb1dc..d3514ab 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -59,6 +59,8 @@ Available logical expressions are: ``1`` if ``a`` is EQUAL ``b`` in a numeric comparison, else ``0`` ``$<IN_LIST:a,b>`` ``1`` if ``a`` is IN_LIST ``b``, else ``0`` +``$<TARGET_EXISTS:tgt>`` + ``1`` if ``tgt`` is an existed target name, else ``0``. ``$<CONFIG:cfg>`` ``1`` if config is ``cfg``, else ``0``. This is a case-insensitive comparison. The mapping in :prop_tgt:`MAP_IMPORTED_CONFIG_<CONFIG>` is also considered by |