fix #270910: raise minimum GCC version to 4.8
This commit is contained in:
parent
b7116220d2
commit
e7f8b22bc6
1 changed files with 4 additions and 4 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue