Bump minimal compiler versions: gcc-9 and clang-10.

This commit is contained in:
Nekotekina 2020-02-10 14:08:18 +03:00
parent 491526b421
commit 9569ae24e0

View File

@ -3,12 +3,12 @@ cmake_minimum_required(VERSION 3.12.4)
project(rpcs3)
if(CMAKE_COMPILER_IS_GNUCXX)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8)
message(FATAL_ERROR "RPCS3 requires at least gcc-8.")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
message(FATAL_ERROR "RPCS3 requires at least gcc-9.")
endif()
elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
message(FATAL_ERROR "RPCS3 requires at least clang-5.0.")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0)
message(FATAL_ERROR "RPCS3 requires at least clang-10.0.")
endif()
endif()