Fix support for building with ccache

refs #12537
This commit is contained in:
Gunnar Beutner 2016-08-27 08:01:13 +02:00
parent 60e86e02ff
commit 03b593fa67
1 changed files with 2 additions and 2 deletions

View File

@ -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()