summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeRoleGlobalProperty/Script.cmake
blob: 371edbc5cf5b3ffd8c1d13cad803a7acf5c03f4f (plain)
1
2
3
4
5
6
cmake_minimum_required(VERSION 3.12)

get_property(role GLOBAL PROPERTY CMAKE_ROLE)
if(NOT role STREQUAL "SCRIPT")
  message(SEND_ERROR "CMAKE_ROLE property is \"${role}\", should be \"SCRIPT\"")
endif()