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
|
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.")
|
message(STATUS "Your version of GCC is too old for building Icinga 2 in C++11 mode.")
|
||||||
set(CXX_FLAG_CXX11 OFF)
|
set(CXX_FLAG_CXX11 OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue