]> git.lyx.org Git - lyx.git/commitdiff
Cmake build: Adapt to recognise AC_INIT empty buildtype
authorKornel Benko <kornel@lyx.org>
Tue, 14 May 2024 15:07:18 +0000 (17:07 +0200)
committerKornel Benko <kornel@lyx.org>
Tue, 14 May 2024 15:07:18 +0000 (17:07 +0200)
development/cmake/modules/LyXMacros.cmake

index 045a63f31a65528ac0bcce345133efa0987bba04..ce35e34fe9ea5972fa8f5147d1c7f6fab4ec738f 100644 (file)
@@ -459,7 +459,7 @@ function(determineversionandbuildtype configfile package version dirs date build
     set(${buildtype} "development" PARENT_SCOPE)
   elseif(LYX_BUILD_TYPE MATCHES "^\(alpha|beta|rc|pre\)[0-9]*$")
     set(${buildtype} "prerelease" PARENT_SCOPE)
-  elseif(LYX_BUILD_TYPE MATCHES "^$")
+  elseif("${LYX_BUILD_TYPE}" MATCHES "^$")
     set(${buildtype} "release" PARENT_SCOPE)
   else()
     set(${buildtype} "unknown" PARENT_SCOPE)