You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
456 B
17 lines
456 B
4 years ago
|
|
||
|
include (CMP0102-Common.cmake)
|
||
|
get_property(is_type_set CACHE CMP0102_TEST_VARIABLE
|
||
|
PROPERTY TYPE SET)
|
||
|
if (NOT is_type_set)
|
||
|
message(FATAL_ERROR
|
||
|
"There is a cache entry for an undefined variable after "
|
||
|
"`mark_as_advanced`.")
|
||
|
endif ()
|
||
|
get_property(type CACHE CMP0102_TEST_VARIABLE
|
||
|
PROPERTY TYPE)
|
||
|
if (NOT type STREQUAL "UNINITIALIZED")
|
||
|
message(FATAL_ERROR
|
||
|
"The cache type for CMP0102_TEST_VARIABLE is not "
|
||
|
"UNINITIALIZED")
|
||
|
endif ()
|