CMake/Tests/RunCMake/option/CMP0077-WARN.cmake
Robert Maynard 2a5f5c0e31 option: respect existing normal variable
Add policy CMP0077 to change this behavior in a compatible way.
2018-07-09 07:48:28 -04:00

6 lines
149 B
CMake

#Verify that option overwrites existing normal variable when the policy
#is set to OLD
set(OPT_LOCAL_VAR FALSE)
option(OPT_LOCAL_VAR "TEST_VAR" ON)