endif()
message(STATUS)
-message(STATUS "Build options, switch LYX_* variables by -DLYX_*=ON or OFF:")
+message(STATUS "Build params, switch LYX_* options by -DLYX_*=ON or OFF, LYX_* combos by -DLYX_*=value:")
message(STATUS)
LYX_OPTION_LIST_ALL(used)
set(LYX_${_name} ${_default} CACHE STRING "${_description}")
set_property(CACHE LYX_${_name} PROPERTY STRINGS ${_default} ${ARGN})
list(APPEND LYX_OPTIONS LYX_${_name})
+ set(LYX_${_name}_show_message ON)
+ set(LYX_${_name}_description ${_description})
endmacro()
macro(LYX_OPTION_LIST_ALL)
foreach(_option ${LYX_OPTIONS})
if(${_option}_show_message OR ${ARGV0} STREQUAL "help")
string(SUBSTRING "${_option} " 0 25 _var)
- if(${_option})
+ get_property(_prop CACHE ${_option} PROPERTY STRINGS)
+ if(_prop)
+ set(_isset ${${_option}})
+ elseif(${_option})
set(_isset ON)
else()
set(_isset OFF)