# 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()