summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorColby Pike <vectorofbool@gmail.com>2017-01-24 03:14:03 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-26 16:18:50 (GMT)
commit895f7f16a79428689a263ba5cd9a72647dc8e912 (patch)
tree6c3ba32ffb5b9cbfedaf7e61ce45d63b94057c04 /Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
parent8ea12a8b80c4c3153cc602f1d0735b3db8581ae8 (diff)
downloadCMake-895f7f16a79428689a263ba5cd9a72647dc8e912.zip
CMake-895f7f16a79428689a263ba5cd9a72647dc8e912.tar.gz
CMake-895f7f16a79428689a263ba5cd9a72647dc8e912.tar.bz2
Genex: Add `IF` generator expression
This allows a single condition to be used to choose between two alternatives. Without this the condition must be duplicated with one surrounded by `NOT`. Closes: #15585
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
index f5584d5..084b5c3 100644
--- a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
+++ b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
@@ -1,5 +1,6 @@
include(RunCMake)
+run_cmake(BadIF)
run_cmake(BadCONFIG)
run_cmake(BadOR)
run_cmake(BadAND)