]> granicus.if.org Git - icinga2/commitdiff
Fix support for building with ccache
authorGunnar Beutner <gunnar.beutner@netways.de>
Sat, 27 Aug 2016 06:01:13 +0000 (08:01 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sat, 27 Aug 2016 06:01:13 +0000 (08:01 +0200)
refs #12537

CMakeLists.txt

index 6c855bd170db975f03257370df4633e04ca969b3..dbb3e7dbff47e0e5c5ac86427be58ed03535cf3e 100644 (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()