From 868c59dd1cb0e584b3e53897d32aeb56cf4bca77 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Tue, 17 Jan 2017 20:00:56 +0100 Subject: [PATCH] cmake: Enforce minimum GCC version --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ad29862fe..e02be0f432 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,6 +239,11 @@ macro(check_and_add_flag var flag) endif() 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 if(NOT MSVC) add_definitions(-Wall)