From 767c0fb3379de5bb2ea328fb5423753c537ae2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 28 Jun 2023 16:25:11 +0200 Subject: [PATCH] cmake/versions.cmake: version string must have 3 parts otherwise cmake might crash (#5204) --- cmake/versions.cmake | 1 + createrelease | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/versions.cmake b/cmake/versions.cmake index bceb26b89..3488176c8 100644 --- a/cmake/versions.cmake +++ b/cmake/versions.cmake @@ -1,4 +1,5 @@ # Version for libraries CPP +# Version string must have 3 "parts". https://sourceforge.net/p/cppcheck/discussion/development/thread/e57efb2b62/ SET(VERSION "2.11.99") STRING(REGEX MATCHALL "[0-9]+" VERSION_PARTS "${VERSION}") LIST(GET VERSION_PARTS 0 VERSION_MAJOR) diff --git a/createrelease b/createrelease index 905ce4b5d..c99964be1 100755 --- a/createrelease +++ b/createrelease @@ -31,7 +31,7 @@ # # Update version numbers in: # sed -i -r "s/version 2[.][0-9]+([.]99)*/version 2.9/" cli/main.cpp -# sed -i -r "s|2[.][0-9]+([.]99)*|2.9|" cmake/versions.cmake +# sed -i -r "s|2[.][0-9]+([.]99)*|2.9.0|" cmake/versions.cmake # version must have 3 parts. # sed -i -r "s/MINOR [0-9]+/MINOR 9/" lib/version.h # sed -i -r "s/2[.][0-9]+([.]99)*/2.9/" win_installer/productInfo.wxi # sed -i -r "s/subtitle: Version 2\.[0-9]+/subtitle: Version 2.9/" man/*.md