summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CMakeRoleGlobalProperty/test.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMakeRoleGlobalProperty/test.cmake.in')
-rw-r--r--Tests/RunCMake/CMakeRoleGlobalProperty/test.cmake.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeRoleGlobalProperty/test.cmake.in b/Tests/RunCMake/CMakeRoleGlobalProperty/test.cmake.in
new file mode 100644
index 000000000..4e2c0859e
--- /dev/null
+++ b/Tests/RunCMake/CMakeRoleGlobalProperty/test.cmake.in
@@ -0,0 +1,7 @@
+cmake_minimum_required(VERSION 3.12)
+set(CTEST_RUN_CURRENT_SCRIPT 0)
+
+get_property(role GLOBAL PROPERTY CMAKE_ROLE)
+if(NOT role STREQUAL "CTEST")
+ message(SEND_ERROR "CMAKE_ROLE property is \"${role}\", should be \"CTEST\"")
+endif()