Set version 2.8.1

This commit is contained in:
Daniel Marjamäki 2022-07-07 19:05:21 +02:00
parent a626c2d171
commit 32a0641365
2 changed files with 5 additions and 4 deletions

View File

@ -1,9 +1,10 @@
# Version for libraries CPP # Version for libraries CPP
SET(VERSION "2.8") SET(VERSION "2.8.1")
STRING(REGEX MATCHALL "[0-9]" VERSION_PARTS "${VERSION}") STRING(REGEX MATCHALL "[0-9]" VERSION_PARTS "${VERSION}")
LIST(GET VERSION_PARTS 0 VERSION_MAJOR) LIST(GET VERSION_PARTS 0 VERSION_MAJOR)
LIST(GET VERSION_PARTS 1 VERSION_MINOR) LIST(GET VERSION_PARTS 1 VERSION_MINOR)
SET(SOVERSION "${VERSION_MAJOR}.${VERSION_MINOR}") LIST(GET VERSION_PARTS 2 VERSION_BUILD)
SET(SOVERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD}")
# Postfix of so's: # Postfix of so's:
SET(DLLVERSION "") SET(DLLVERSION "")

View File

@ -8,8 +8,8 @@
#define STRINGIFY(x) STRING(x) #define STRINGIFY(x) STRING(x)
#define STRING(VER) #VER #define STRING(VER) #VER
#if CPPCHECK_MINOR == CPPCHECK_DEVMINOR #if CPPCHECK_MINOR == CPPCHECK_DEVMINOR
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) #define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) ".1"
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,0,0 #define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,1,0
#else #else
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) " dev" #define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) " dev"
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,99,0 #define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,99,0