Cmake build: Allow numbers in lyx-suffix too

That way we can use '-DLYX_SUFFIX_VALUE=123.456'
This commit is contained in:
Kornel Benko 2017-04-30 16:58:41 +02:00
parent 4a42a71119
commit 0f798d6675

View File

@ -266,7 +266,7 @@ macro(LYX_STRING _name _description _default)
if (NOT "${tmp_lyx_name}" MATCHES "^\\..*$") if (NOT "${tmp_lyx_name}" MATCHES "^\\..*$")
set(tmp_lyx_name ".${tmp_lyx_name}") set(tmp_lyx_name ".${tmp_lyx_name}")
endif() endif()
if (NOT "${tmp_lyx_name}" MATCHES "^\\.[a-zA-Z_\\.]+$") if (NOT "${tmp_lyx_name}" MATCHES "^\\.[a-zA-Z_0-9\\.]+$")
message(FATAL_ERROR "Invalid string for lyx suffix (${tmp_lyx_name})") message(FATAL_ERROR "Invalid string for lyx suffix (${tmp_lyx_name})")
endif() endif()
endif() endif()