]> git.lyx.org Git - features.git/commitdiff
Cmake build: Allow numbers in lyx-suffix too
authorKornel Benko <kornel@lyx.org>
Sun, 30 Apr 2017 14:58:41 +0000 (16:58 +0200)
committerKornel Benko <kornel@lyx.org>
Sun, 30 Apr 2017 15:01:31 +0000 (17:01 +0200)
That way we can use '-DLYX_SUFFIX_VALUE=123.456'

development/cmake/modules/LyXMacros.cmake

index cdcbae809daaf3ffc06653b6640ae459184be235..ff0822e32a97cdfbff46d1818f72c3c64b65dc0c 100644 (file)
@@ -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()