Skip to content

Commit

Permalink
fix #270910: raise minimum GCC version to 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Apr 2, 2018
1 parent 5f73586 commit 39dc925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Expand Up @@ -159,13 +159,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)))
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.7 required")
" >= 4.8 required")
endif()
endif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")

Expand Down

0 comments on commit 39dc925

Please sign in to comment.