From 0464071ddb8d3b39228babe6f4d5d66aeb5dac81 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 11 Dec 2015 12:11:09 +0100 Subject: [PATCH] Fix build error with older CMake versions on VERSION_LESS compare fixes #10826 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38330d61c..5ea3a38f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,7 +212,7 @@ if(UNIX) OUTPUT_VARIABLE _ICINGA2_COMPILER_VERSION ) - if (${_ICINGA2_COMPILER_VERSION} VERSION_LESS "4.7.0") + if("${_ICINGA2_COMPILER_VERSION}" VERSION_LESS "4.7.0") message(STATUS "Your version of GCC is too old for building Icinga 2 in C++11 mode.") set(CXX_FLAG_CXX11 OFF) endif()