mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Cmake build: Add combo-values to the list of displayed lyx options
This commit is contained in:
parent
4bea5b9d18
commit
2a0ae2e739
@ -840,7 +840,7 @@ if(LYX_ENABLE_URLTESTS)
|
||||
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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user