fix #270910: raise minimum GCC version to 4.8

This commit is contained in:
mirabilos 2018-03-31 07:16:19 +02:00 committed by lasconic
parent b7116220d2
commit e7f8b22bc6

View file

@ -151,13 +151,13 @@ if (APPLE)
endif (APPLE)
#
# Check for GCC compiler >= 4.7
# Check for gcc compiler >= 4.8
#
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
if (${CMAKE_CXX_COMPILER_MAJOR} LESS 4
OR ((${CMAKE_CXX_COMPILER_MAJOR} EQUAL 4) AND (${CMAKE_CXX_COMPILER_MINOR} LESS 7)))
message(FATAL_ERROR "Bad GCC compiler version " ${CMAKE_CXX_COMPILER_VERSION}
" >= 4.7 required")
OR ((${CMAKE_CXX_COMPILER_MAJOR} EQUAL 4) AND (${CMAKE_CXX_COMPILER_MINOR} LESS 8)))
message(FATAL_ERROR "bad gcc compiler version " ${CMAKE_CXX_COMPILER_VERSION}
" >= 4.8 required")
endif()
endif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")