Fix build error with older CMake versions on VERSION_LESS compare

fixes #10826
This commit is contained in:
Michael Friedrich 2015-12-11 12:11:09 +01:00
parent a1228972ae
commit 138d416ee2
1 changed files with 1 additions and 1 deletions

View File

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