summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/if/TestNameThatDoesNotExist.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/if/TestNameThatDoesNotExist.cmake')
-rw-r--r--Tests/RunCMake/if/TestNameThatDoesNotExist.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/if/TestNameThatDoesNotExist.cmake b/Tests/RunCMake/if/TestNameThatDoesNotExist.cmake
new file mode 100644
index 0000000..74bc8b0
--- /dev/null
+++ b/Tests/RunCMake/if/TestNameThatDoesNotExist.cmake
@@ -0,0 +1,6 @@
+cmake_policy(SET CMP0064 NEW)
+if(TEST TestThatDoesNotExist)
+ message(FATAL_ERROR "if TestThatDoesNotExist is true")
+else()
+ message(STATUS "if TestThatDoesNotExist is false")
+endif()