From 9e90b17eb4c15e9bbf6953a90b2ab938708c299f Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 21 Jul 2022 10:54:46 +0200 Subject: [PATCH] Require GCC 7+ --- CMakeLists.txt | 4 ++-- doc/21-development.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 109202018..196d3ce71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -386,8 +386,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OUTPUT_VARIABLE _ICINGA2_COMPILER_VERSION ) - if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "6.3.0") - message(FATAL_ERROR "Your version of GCC (${CMAKE_CXX_COMPILER_VERSION}) is too old for building Icinga 2 (GCC >= 6.3.0 is required).") + if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "7.0.0") + message(FATAL_ERROR "Your version of GCC (${CMAKE_CXX_COMPILER_VERSION}) is too old for building Icinga 2 (GCC >= 7.0.0 is required).") endif() endif() diff --git a/doc/21-development.md b/doc/21-development.md index dae57485c..c25ae839a 100644 --- a/doc/21-development.md +++ b/doc/21-development.md @@ -2173,7 +2173,7 @@ Icinga application using a dist tarball (including notes for distributions): * cmake >= 2.6 * GNU make (make) or ninja-build * C++ compiler which supports C++14 - * RHEL/Fedora/SUSE: gcc-c++ >= 6.3 (extra Developer Tools on RHEL7 see below) + * RHEL/Fedora/SUSE: gcc-c++ >= 7 (extra Developer Tools on RHEL7 see below) * Debian/Ubuntu: build-essential * Alpine: build-base * you can also use clang++