X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fcmake%2Fmodules%2FLyXMacros.cmake;h=4332830c251357430e3d648fe62ebcf0c8ed5367;hb=2a0ae2e7392cd80b633bdaf70ef6824725c38c22;hp=2bddaaf079645d37fe499bf24b2af57d8bc9e8cf;hpb=4bea5b9d18af249661e23c462fea3f59042bac03;p=features.git diff --git a/development/cmake/modules/LyXMacros.cmake b/development/cmake/modules/LyXMacros.cmake index 2bddaaf079..4332830c25 100644 --- a/development/cmake/modules/LyXMacros.cmake +++ b/development/cmake/modules/LyXMacros.cmake @@ -237,6 +237,8 @@ macro(LYX_COMBO _name _description _default) 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) @@ -255,7 +257,10 @@ 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)