]> git.lyx.org Git - lyx.git/commitdiff
Amend(1) 5eaa03a1, Adapt to recognise AC_INIT empty buildtype
authorKornel Benko <kornel@lyx.org>
Wed, 15 May 2024 10:16:59 +0000 (12:16 +0200)
committerKornel Benko <kornel@lyx.org>
Wed, 15 May 2024 10:16:59 +0000 (12:16 +0200)
development/cmake/modules/LyXMacros.cmake

index ce35e34fe9ea5972fa8f5147d1c7f6fab4ec738f..a5c8c961c7ef8343bbd96ed566760ac97d9f728e 100644 (file)
@@ -430,7 +430,7 @@ function(determineversionandbuildtype configfile package version dirs date build
       setstripped(PACKAGE_VERSION ${_PV})
       setstripped(PACKAGE_BUGREPORT ${_PBU})
       set(${package} ${PACKAGE_BASE} ${PACKAGE_VERSION} ${PACKAGE_BUGREPORT} PARENT_SCOPE)
-      if(PACKAGE_VERSION MATCHES "^\([0-9]+\)\\.\([0-9]+\)\(\\.\([0-9]+\)\(\\.\([0-9]+\)\)?\)?[-~]?\([A-Za-z]+[0-9]*\).*$")
+      if(PACKAGE_VERSION MATCHES "^\([0-9]+\)\\.\([0-9]+\)\(\\.\([0-9]+\)\(\\.\([0-9]+\)\)?\)?[-~]?\([A-Za-z]+[0-9]*\)?.*$")
         set(LYX_MAJOR_VERSION ${CMAKE_MATCH_1})
         set(LYX_MINOR_VERSION ${CMAKE_MATCH_2})
         set(LYX_RELEASE_LEVEL ${CMAKE_MATCH_4})