summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0102/CMP0102-NEW.cmake
blob: bdf769f069d2ca159b792cfd7403f0e8e7eb0962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

cmake_policy(SET CMP0102 NEW)

include (CMP0102-Common.cmake)
get_property(is_type_set CACHE CMP0102_TEST_VARIABLE
  PROPERTY TYPE SET)
if (is_type_set)
  get_property(type CACHE CMP0102_TEST_VARIABLE
    PROPERTY TYPE)
  message(FATAL_ERROR
    "There is a cache entry for an undefined variable after "
    "`mark_as_advanced`.")
endif ()