commit 0f798d6675857711f70aa527e59d9fb6d0d78e5f
Author: Kornel Benko <[email protected]>
Date: Sun Apr 30 16:58:41 2017 +0200
Cmake build: Allow numbers in lyx-suffix too
That way we can use '-DLYX_SUFFIX_VALUE=123.456'
---
development/cmake/modules/LyXMacros.cmake | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/development/cmake/modules/LyXMacros.cmake
b/development/cmake/modules/LyXMacros.cmake
index cdcbae8..ff0822e 100644
--- a/development/cmake/modules/LyXMacros.cmake
+++ b/development/cmake/modules/LyXMacros.cmake
@@ -266,7 +266,7 @@ macro(LYX_STRING _name _description _default)
if (NOT "${tmp_lyx_name}" MATCHES "^\\..*$")
set(tmp_lyx_name ".${tmp_lyx_name}")
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})")
endif()
endif()