Skip to content

Commit

Permalink
2.4.1: Set version
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Mar 22, 2021
1 parent d0afc4b commit b01c926
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
*
* @mainpage Cppcheck
* @version 2.4
* @version 2.4.1
*
* @section overview_sec Overview
* Cppcheck is a simple tool for static analysis of C/C++ code.
Expand Down
5 changes: 3 additions & 2 deletions cmake/versions.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Version for libraries CPP
SET(VERSION "2.4")
SET(VERSION "2.4.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_DEVMINOR)
SET(SOVERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_DEVMINOR}")

# Postfix of so's:
SET(DLLVERSION "")
Expand Down
13 changes: 5 additions & 8 deletions lib/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,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
#else
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) " dev"
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,99,0
#endif
#define LEGALCOPYRIGHT L"Copyright (C) 2007-2020 Cppcheck team."

#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_MINOR) ".1"
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,1,0

#define LEGALCOPYRIGHT L"Copyright (C) 2007-2021 Cppcheck team."
4 changes: 2 additions & 2 deletions win_installer/productInfo.wxi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<?define ProductName = "Cppcheck $(var.Platform) 2.4" ?>
<?define ProductName = "Cppcheck $(var.Platform) 2.4.1" ?>
<?define ProductNameShort = "Cppcheck" ?>
<?define ProductVersion = "2.4" ?>
<?define ProductVersion = "2.4.1" ?>

<?define ProductManufacturer = "The Cppcheck team" ?>
<?define ProductDescription = "Cppcheck is a tool for static analysis of C/C++ code" ?>
Expand Down

0 comments on commit b01c926

Please sign in to comment.