From c7a12d18a16b55d1ad644f682a8eabdc703cfd20 Mon Sep 17 00:00:00 2001 From: Ruslan Fomkin Date: Fri, 18 Dec 2020 11:22:23 +0100 Subject: [PATCH] Fix version number verification to allow releases The verification of version number in version.config required pre-release label always. This fixes the bug and allows release versions. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 712812509..ce6e9d48c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ endfunction() configure_file("version.config" "version.config" COPYONLY) file(READ version.config VERSION_CONFIG) -set(VERSION_REGEX "version[\t ]*=[\t ]*([0-9]+\\.[0-9]+\\.*[0-9]*)([-]([a-z]+[0-9]*))?([-](dev))?\r?\nupdate_from_version[\t ]*=[\t ]*([0-9]+\\.[0-9]+\\.*[0-9]*([-]([a-z]+[0-9]*)))*(\r?\n)*$") +set(VERSION_REGEX "version[\t ]*=[\t ]*([0-9]+\\.[0-9]+\\.*[0-9]*)([-]([a-z]+[0-9]*))?([-](dev))?\r?\nupdate_from_version[\t ]*=[\t ]*([0-9]+\\.[0-9]+\\.*[0-9]*([-]([a-z]+[0-9]*))?)*(\r?\n)*$") if (NOT (${VERSION_CONFIG} MATCHES ${VERSION_REGEX})) message(FATAL_ERROR "Cannot read version from version.config")