Skip to content

Commit 767c0fb

Browse files
authored
cmake/versions.cmake: version string must have 3 parts otherwise cmake might crash (#5204)
1 parent 4f71bbe commit 767c0fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmake/versions.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Version for libraries CPP
2+
# Version string must have 3 "parts". https://sourceforge.net/p/cppcheck/discussion/development/thread/e57efb2b62/
23
SET(VERSION "2.11.99")
34
STRING(REGEX MATCHALL "[0-9]+" VERSION_PARTS "${VERSION}")
45
LIST(GET VERSION_PARTS 0 VERSION_MAJOR)

createrelease

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#
3232
# Update version numbers in:
3333
# sed -i -r "s/version 2[.][0-9]+([.]99)*/version 2.9/" cli/main.cpp
34-
# sed -i -r "s|2[.][0-9]+([.]99)*|2.9|" cmake/versions.cmake
34+
# sed -i -r "s|2[.][0-9]+([.]99)*|2.9.0|" cmake/versions.cmake # version must have 3 parts.
3535
# sed -i -r "s/MINOR [0-9]+/MINOR 9/" lib/version.h
3636
# sed -i -r "s/2[.][0-9]+([.]99)*/2.9/" win_installer/productInfo.wxi
3737
# sed -i -r "s/subtitle: Version 2\.[0-9]+/subtitle: Version 2.9/" man/*.md

0 commit comments

Comments
 (0)