mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Cmake build: Syntax of AC_INIT() in configure.ac changed, adapted macro
This commit is contained in:
parent
0afa322860
commit
c07278a45c
@ -434,7 +434,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-z]*\).*$")
|
||||
if(PACKAGE_VERSION MATCHES "^\([0-9]+\)\\.\([0-9]+\)\(\\.\([0-9]+\)\(\\.\([0-9]+\)\)?\)?-?\([a-z]*[0-9]*\).*$")
|
||||
set(LYX_MAJOR_VERSION ${CMAKE_MATCH_1})
|
||||
set(LYX_MINOR_VERSION ${CMAKE_MATCH_2})
|
||||
set(LYX_RELEASE_LEVEL ${CMAKE_MATCH_4})
|
||||
@ -460,7 +460,7 @@ function(determineversionandbuildtype configfile package version dirs date build
|
||||
set(${date} ${LYX_DATE} PARENT_SCOPE)
|
||||
if(LYX_BUILD_TYPE MATCHES "^\(dev\)$")
|
||||
set(${buildtype} "development" PARENT_SCOPE)
|
||||
elseif(LYX_BUILD_TYPE MATCHES "^\(alpha|beta|rc|pre\)$")
|
||||
elseif(LYX_BUILD_TYPE MATCHES "^\(alpha|beta|rc|pre\)[0-9]*$")
|
||||
set(${buildtype} "prerelease" PARENT_SCOPE)
|
||||
elseif(LYX_BUILD_TYPE MATCHES "^$")
|
||||
set(${buildtype} "release" PARENT_SCOPE)
|
||||
|
Loading…
Reference in New Issue
Block a user