summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0064/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2014-12-30 01:47:48 (GMT)
committerBrad King <brad.king@kitware.com>2015-08-03 13:22:25 (GMT)
commit14e49ed15615e7f2bcb58aa4540683250006f5c7 (patch)
treefad463f1cb96d9da2ee65bee42e8e6a251aec971 /Tests/RunCMake/CMP0064/RunCMakeTest.cmake
parent623dcc85a447b9ce0f09cffa8cd296cd8a51ad9d (diff)
downloadCMake-14e49ed15615e7f2bcb58aa4540683250006f5c7.zip
CMake-14e49ed15615e7f2bcb58aa4540683250006f5c7.tar.gz
CMake-14e49ed15615e7f2bcb58aa4540683250006f5c7.tar.bz2
if: Add "TEST <test>" condition
if(TEST TestNameThatExists) will return true if a test with the name TestNameThatExists has been added with add_test. The syntax is similar to if(TARGET TargetName). Since use of "TEST" as an argument to if() could previously be interpreted as a non-keyword argument, add policy CMP0064 to treat it as a keyword as NEW behavior.
Diffstat (limited to 'Tests/RunCMake/CMP0064/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CMP0064/RunCMakeTest.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0064/RunCMakeTest.cmake b/Tests/RunCMake/CMP0064/RunCMakeTest.cmake
new file mode 100644
index 0000000..26e0a91
--- /dev/null
+++ b/Tests/RunCMake/CMP0064/RunCMakeTest.cmake
@@ -0,0 +1,5 @@
+include(RunCMake)
+
+run_cmake(CMP0064-OLD)
+run_cmake(CMP0064-WARN)
+run_cmake(CMP0064-NEW)