CMP0102-NEW.cmake 341 B

12345678910111213
  1. cmake_policy(SET CMP0102 NEW)
  2. include (CMP0102-Common.cmake)
  3. get_property(is_type_set CACHE CMP0102_TEST_VARIABLE
  4. PROPERTY TYPE SET)
  5. if (is_type_set)
  6. get_property(type CACHE CMP0102_TEST_VARIABLE
  7. PROPERTY TYPE)
  8. message(FATAL_ERROR
  9. "There is a cache entry for an undefined variable after "
  10. "`mark_as_advanced`.")
  11. endif ()