From 03b593fa67723dcd3cce59b8a7a5eb78c584f4c0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 27 Aug 2016 08:01:13 +0200 Subject: [PATCH] Fix support for building with ccache refs #12537 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c855bd17..dbb3e7dbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,8 +245,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OUTPUT_VARIABLE _ICINGA2_COMPILER_VERSION ) - if("${_ICINGA2_COMPILER_VERSION}" VERSION_LESS "4.6.0") - message(FATAL_ERROR "Your version of GCC (${_ICINGA2_COMPILER_VERSION}) is too old for building Icinga 2 (GCC >= 4.6.0 is required).") + 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).") endif() endif()