]> git.lyx.org Git - features.git/blobdiff - development/cmake/modules/LyXMacros.cmake
Cmake build: Add combo-values to the list of displayed lyx options
[features.git] / development / cmake / modules / LyXMacros.cmake
index 2bddaaf079645d37fe499bf24b2af57d8bc9e8cf..4332830c251357430e3d648fe62ebcf0c8ed5367 100644 (file)
@@ -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)