mirror of https://github.com/Icinga/icinga2.git
CMake: require a GCC version according to INSTALL.md
This commit is contained in:
parent
4ad1d1cd43
commit
7054f4664e
|
@ -246,8 +246,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|||
OUTPUT_VARIABLE _ICINGA2_COMPILER_VERSION
|
||||
)
|
||||
|
||||
if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.6.0")
|
||||
message(FATAL_ERROR "Your version of GCC (${CMAKE_CXX_COMPILER_VERSION}) is too old for building Icinga 2 (GCC >= 4.6.0 is required).")
|
||||
if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.7.0")
|
||||
message(FATAL_ERROR "Your version of GCC (${CMAKE_CXX_COMPILER_VERSION}) is too old for building Icinga 2 (GCC >= 4.7.0 is required).")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue