[icinga-checkins] icinga.org: icinga2/master: Fix support for building with ccache

git at icinga.org git at icinga.org
Sat Aug 27 08:01:51 CEST 2016


Module: icinga2
Branch: master
Commit: 03b593fa67723dcd3cce59b8a7a5eb78c584f4c0
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=03b593fa67723dcd3cce59b8a7a5eb78c584f4c0

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Aug 27 08:01:13 2016 +0200

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 6c855bd..dbb3e7d 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()
 



More information about the icinga-checkins mailing list