Increased the minimum required GCC version to cover C++14.

This commit is contained in:
Leon Styhre 2021-07-07 17:46:44 +02:00
parent b861600814
commit 2d6f4505af

View file

@ -107,8 +107,8 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
message("-- Compiler is GNU/GCC")
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpfullversion OUTPUT_VARIABLE G++_VERSION)
if(G++_VERSION VERSION_LESS 4.8)
message(SEND_ERROR "You need at least GCC 4.8 to compile EmulationStation-DE")
if(G++_VERSION VERSION_LESS 5.4)
message(SEND_ERROR "You need at least GCC 5.4 to compile EmulationStation-DE")
endif()
if(WIN32)
set(CMAKE_CXX_FLAGS "-mwindows ${CMAKE_CXX_FLAGS}")