Project.cmake 191 B

123456
  1. get_property(role GLOBAL PROPERTY CMAKE_ROLE)
  2. if(NOT role STREQUAL "PROJECT")
  3. message(SEND_ERROR "CMAKE_ROLE property is \"${role}\", should be \"PROJECT\"")
  4. endif()
  5. add_subdirectory(sub)