mirror of https://github.com/Icinga/icinga2.git
Fix build error with older CMake versions on VERSION_LESS compare
fixes #10826
This commit is contained in:
parent
a1228972ae
commit
138d416ee2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue