mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Cmake build: Correct display cmake options
The change allows to display options whose string-length is less than 10 characters. The previous setting truncated the string to 4 chars, which is too few for a string like e.g. "NATIVE".
This commit is contained in:
parent
c6df155f6c
commit
0362ec022b
@ -288,7 +288,7 @@ macro(LYX_OPTION_LIST_ALL)
|
|||||||
file(APPEND ${run_cmake} " -G\"${CMAKE_GENERATOR}\" ${cont}")
|
file(APPEND ${run_cmake} " -G\"${CMAKE_GENERATOR}\" ${cont}")
|
||||||
foreach(_option ${LYX_OPTIONS})
|
foreach(_option ${LYX_OPTIONS})
|
||||||
if(${_option}_show_message OR ${ARGV0} STREQUAL "help")
|
if(${_option}_show_message OR ${ARGV0} STREQUAL "help")
|
||||||
string(SUBSTRING "${_option} " 0 25 _var)
|
string(SUBSTRING "${_option} " 0 31 _var)
|
||||||
get_property(_prop CACHE ${_option} PROPERTY STRINGS)
|
get_property(_prop CACHE ${_option} PROPERTY STRINGS)
|
||||||
list(FIND LYX_OPTION_STRINGS ${_option} _index)
|
list(FIND LYX_OPTION_STRINGS ${_option} _index)
|
||||||
if (${_index} GREATER -1)
|
if (${_index} GREATER -1)
|
||||||
@ -299,8 +299,8 @@ macro(LYX_OPTION_LIST_ALL)
|
|||||||
else()
|
else()
|
||||||
set(_isset OFF)
|
set(_isset OFF)
|
||||||
endif()
|
endif()
|
||||||
string(SUBSTRING "${_isset} " 0 4 _val)
|
string(SUBSTRING "${_isset} " 0 10 _val)
|
||||||
message(STATUS "${_var}= ${_val} : ${${_option}_description}")
|
message(STATUS "${_var}= ${_val}: ${${_option}_description}")
|
||||||
file(APPEND ${run_cmake} " -D${_option}=${${_option}} ${cont}")
|
file(APPEND ${run_cmake} " -D${_option}=${${_option}} ${cont}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
Reference in New Issue
Block a user