From: Michael Friedrich Date: Fri, 11 Dec 2015 11:11:09 +0000 (+0100) Subject: Fix build error with older CMake versions on VERSION_LESS compare X-Git-Tag: v2.4.2~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0464071ddb8d3b39228babe6f4d5d66aeb5dac81;p=icinga2 Fix build error with older CMake versions on VERSION_LESS compare fixes #10826 --- 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()