mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
10 lines
286 B
CMake
10 lines
286 B
CMake
|
|
#Verify that option overwrites existing normal variable when the policy
|
|
#is set to OLD
|
|
cmake_policy(SET CMP0077 OLD)
|
|
set(OPT_LOCAL_VAR FALSE)
|
|
option(OPT_LOCAL_VAR "TEST_VAR" ON)
|
|
if(NOT OPT_LOCAL_VAR)
|
|
message(FATAL_ERROR "option failed to overwrite existing normal variable")
|
|
endif()
|