summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0064/CMP0064-WARN.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMP0064/CMP0064-WARN.cmake')
-rw-r--r--Tests/RunCMake/CMP0064/CMP0064-WARN.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0064/CMP0064-WARN.cmake b/Tests/RunCMake/CMP0064/CMP0064-WARN.cmake
new file mode 100644
index 0000000..bffd3f3
--- /dev/null
+++ b/Tests/RunCMake/CMP0064/CMP0064-WARN.cmake
@@ -0,0 +1,7 @@
+cmake_policy(SET CMP0064 OLD)
+
+if(TEST)
+ message(FATAL_ERROR "TEST was not recognized to be undefined")
+else()
+ message(STATUS "TEST was treated as a variable")
+endif()