From 7054f4664ea9deb26d3133288235e0350f798083 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 5 May 2017 12:46:56 +0200 Subject: [PATCH] CMake: require a GCC version according to INSTALL.md --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 63fdab521..ae784f2ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -246,8 +246,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OUTPUT_VARIABLE _ICINGA2_COMPILER_VERSION ) - if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.6.0") - message(FATAL_ERROR "Your version of GCC (${CMAKE_CXX_COMPILER_VERSION}) is too old for building Icinga 2 (GCC >= 4.6.0 is required).") + if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.7.0") + message(FATAL_ERROR "Your version of GCC (${CMAKE_CXX_COMPILER_VERSION}) is too old for building Icinga 2 (GCC >= 4.7.0 is required).") endif() endif()