Cmake build: Amend 1b5f8f27

This commit is contained in:
Kornel Benko 2024-01-13 10:49:14 +01:00
parent 3174e175d1
commit 8899e4d6cc

View File

@ -455,7 +455,7 @@ function(determineversionandbuildtype configfile package version dirs date build
set(${version} ${LYX_VERSION} ${LYX_MAJOR_VERSION} ${LYX_MINOR_VERSION} ${LYX_RELEASE_LEVEL} ${LYX_RELEASE_PATCH} PARENT_SCOPE) set(${version} ${LYX_VERSION} ${LYX_MAJOR_VERSION} ${LYX_MINOR_VERSION} ${LYX_RELEASE_LEVEL} ${LYX_RELEASE_PATCH} PARENT_SCOPE)
set(${dirs} ${LYX_DIR_VER} ${LYX_USERDIR_VER} PARENT_SCOPE) set(${dirs} ${LYX_DIR_VER} ${LYX_USERDIR_VER} PARENT_SCOPE)
set(${date} ${LYX_DATE} PARENT_SCOPE) set(${date} ${LYX_DATE} PARENT_SCOPE)
if(LYX_BUILD_TYPE MATCHES "^\(dev\)$") if(LYX_BUILD_TYPE MATCHES "^\(dev(el)?\)$")
set(${buildtype} "development" PARENT_SCOPE) set(${buildtype} "development" PARENT_SCOPE)
elseif(LYX_BUILD_TYPE MATCHES "^\(alpha|beta|rc|pre\)[0-9]*$") elseif(LYX_BUILD_TYPE MATCHES "^\(alpha|beta|rc|pre\)[0-9]*$")
set(${buildtype} "prerelease" PARENT_SCOPE) set(${buildtype} "prerelease" PARENT_SCOPE)