From 32a06413656fc4648e7b0d63ed3a4d27e8a2d76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 7 Jul 2022 19:05:21 +0200 Subject: [PATCH] Set version 2.8.1 --- cmake/versions.cmake | 5 +++-- lib/version.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmake/versions.cmake b/cmake/versions.cmake index 9be86e200..b999fc013 100644 --- a/cmake/versions.cmake +++ b/cmake/versions.cmake @@ -1,9 +1,10 @@ # Version for libraries CPP -SET(VERSION "2.8") +SET(VERSION "2.8.1") STRING(REGEX MATCHALL "[0-9]" VERSION_PARTS "${VERSION}") LIST(GET VERSION_PARTS 0 VERSION_MAJOR) 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: SET(DLLVERSION "") diff --git a/lib/version.h b/lib/version.h index 32e055a0e..cb3a48403 100644 --- a/lib/version.h +++ b/lib/version.h @@ -8,8 +8,8 @@ #define STRINGIFY(x) STRING(x) #define STRING(VER) #VER #if CPPCHECK_MINOR == CPPCHECK_DEVMINOR -#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) -#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,0,0 +#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) ".1" +#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,1,0 #else #define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) " dev" #define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,99,0