Skip to content
Snippets Groups Projects
Commit be39b725 authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[CMake] Check for minimum gcc 4.9.

parent f9c7b028
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,8 @@ endif()
### GNU C/CXX compiler
if(COMPILER_IS_GCC)
get_gcc_version(GCC_VERSION)
if(GCC_VERSION VERSION_LESS "4.8")
message(FATAL_ERROR "GCC minimum required version is 4.8! You are using ${GCC_VERSION}.")
if(GCC_VERSION VERSION_LESS "4.9")
message(FATAL_ERROR "GCC minimum required version is 4.9! You are using ${GCC_VERSION}.")
endif()
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
message(STATUS "Set GCC release flags")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment