From f82cda9f23cbdbf7663fd1660dab40f134933178 Mon Sep 17 00:00:00 2001 From: firewave Date: Sun, 10 Sep 2023 19:41:24 +0200 Subject: [PATCH] bumped minimum required CMake version to 3.5 [skip ci] --- CMakeLists.txt | 2 +- readme.md | 2 ++ releasenotes.txt | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34dd57867bb..c4deaee89e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.5) project(Cppcheck) include(cmake/cxx11.cmake) diff --git a/readme.md b/readme.md index efcf52fdc62..d14d73e10da 100644 --- a/readme.md +++ b/readme.md @@ -44,6 +44,8 @@ There are multiple compilation choices: ### CMake +The minimum required version is CMake 3.5. + Example, compiling Cppcheck with cmake: ```shell diff --git a/releasenotes.txt b/releasenotes.txt index 14298cd77c3..666ffec510f 100644 --- a/releasenotes.txt +++ b/releasenotes.txt @@ -34,3 +34,4 @@ Other: - Added command-line options "--fsigned-char" and "--funsigned-char" to control the signess of the "char" type. This overrides previously specified "--platform" options and is overrides by following ones. - An error is now reported when the "cppcheck.cfg" is invalid. The CLI version will also exit with a failure in that case. - The minimum required compiler versions have been bumped to GCC 5.1 / Clang 3.5 / Visual Studio 2015 +- The minimum required CMake version has been bumped to 3.5