summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Policy/InvalidMaxVersion.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Policy/InvalidMaxVersion.cmake')
-rw-r--r--Tests/RunCMake/Policy/InvalidMaxVersion.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/Policy/InvalidMaxVersion.cmake b/Tests/RunCMake/Policy/InvalidMaxVersion.cmake
new file mode 100644
index 0000000..be3270f
--- /dev/null
+++ b/Tests/RunCMake/Policy/InvalidMaxVersion.cmake
@@ -0,0 +1,5 @@
+if(NOT version)
+ message(SEND_ERROR "Vesrion string is empty: ${version}")
+endif()
+
+cmake_policy(VERSION 3.1...${version})