summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-03 13:25:10 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-08-03 13:25:10 (GMT)
commit7ac2b1256b09044b86c6bd926cc239133beab088 (patch)
treeb45456f41ea1885955795ce3c65c6b29ce502884 /Help/command
parent94d53d1664b1e792e8088880cfd206e8e81ff625 (diff)
parent14e49ed15615e7f2bcb58aa4540683250006f5c7 (diff)
downloadCMake-7ac2b1256b09044b86c6bd926cc239133beab088.zip
CMake-7ac2b1256b09044b86c6bd926cc239133beab088.tar.gz
CMake-7ac2b1256b09044b86c6bd926cc239133beab088.tar.bz2
Merge topic 'if-test'
14e49ed1 if: Add "TEST <test>" condition 623dcc85 ExternalProject: Avoid if() auto-dereference of a "TEST" variable
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/if.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst
index 396becf..2465bde 100644
--- a/Help/command/if.rst
+++ b/Help/command/if.rst
@@ -71,6 +71,10 @@ Possible expressions are:
created by the :command:`add_executable`, :command:`add_library`, or
:command:`add_custom_target` commands.
+``if(TEST test-name)``
+ True if the given name is an existing test name created by the
+ :command:`add_test` command.
+
``if(EXISTS path-to-file-or-directory)``
True if the named file or directory exists. Behavior is well-defined
only for full paths.