CMP0102-OLD.cmake 487 B

123456789101112131415161718
  1. cmake_policy(SET CMP0102 OLD)
  2. include (CMP0102-Common.cmake)
  3. get_property(is_type_set CACHE CMP0102_TEST_VARIABLE
  4. PROPERTY TYPE SET)
  5. if (NOT is_type_set)
  6. message(FATAL_ERROR
  7. "There is a cache entry for an undefined variable after "
  8. "`mark_as_advanced`.")
  9. endif ()
  10. get_property(type CACHE CMP0102_TEST_VARIABLE
  11. PROPERTY TYPE)
  12. if (NOT type STREQUAL "UNINITIALIZED")
  13. message(FATAL_ERROR
  14. "The cache type for CMP0102_TEST_VARIABLE is not "
  15. "UNINITIALIZED")
  16. endif ()