summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpressionShortCircuit/GoodIF.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/GeneratorExpressionShortCircuit/GoodIF.cmake')
-rw-r--r--Tests/RunCMake/GeneratorExpressionShortCircuit/GoodIF.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpressionShortCircuit/GoodIF.cmake b/Tests/RunCMake/GeneratorExpressionShortCircuit/GoodIF.cmake
new file mode 100644
index 0000000..1f9fbe6
--- /dev/null
+++ b/Tests/RunCMake/GeneratorExpressionShortCircuit/GoodIF.cmake
@@ -0,0 +1,5 @@
+set(error $<0>)
+add_custom_target(check ALL
+ COMMAND check $<IF:1,1,${error}>
+ COMMAND Check $<IF:0,${error},1>
+)