cutter/cmake/Utils.cmake

6 lines
213 B
CMake
Raw Normal View History

2019-07-11 13:21:54 +00:00
# Like option(), but the value can also be AUTO
macro(tri_option name desc default)
set("${name}" "${default}" CACHE STRING "${desc}")
set_property(CACHE "${name}" PROPERTY STRINGS AUTO ON OFF)
endmacro()