Merge pull request #5229 from Al2Klimov/bugfix/cmake-wrong-gcc-version

CMake: require a GCC version according to INSTALL.md
This commit is contained in:
Michael Friedrich 2017-05-12 17:15:27 +02:00 committed by GitHub
commit baaef9a559
1 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
OUTPUT_VARIABLE _ICINGA2_COMPILER_VERSION OUTPUT_VARIABLE _ICINGA2_COMPILER_VERSION
) )
if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.6.0") 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.6.0 is required).") 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()
endif() endif()