cmake: Enforce minimum GCC version
This commit is contained in:
parent
9e85e4e26b
commit
868c59dd1c
|
@ -239,6 +239,11 @@ macro(check_and_add_flag var flag)
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
# Enforce minimum GCC version
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
|
||||||
|
message(FATAL_ERROR "Dolphin requires at least GCC 5.0 (found ${CMAKE_CXX_COMPILER_VERSION})")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Enabling all warnings in MSVC spams too much
|
# Enabling all warnings in MSVC spams too much
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_definitions(-Wall)
|
add_definitions(-Wall)
|
||||||
|
|
Loading…
Reference in New Issue