summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeRoleGlobalProperty/test.cmake.in
blob: 4e2c0859e8f6bdd5c55a039d240187f46a0999cc (plain)
1
2
3
4
5
6
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()