mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
3ec82b713e
Fixes: #18331
14 lines
341 B
CMake
14 lines
341 B
CMake
|
|
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 ()
|