From 32bcd59fc98cfedcecd6d043911e17a028da2267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 14 May 2014 10:13:23 +0200 Subject: [PATCH] Require at least gcc 4.8 Code doesn't compile with gcc 4.7 any more. We need a version check anyway as ECM only requires 4.5 which is way too old. REVIEW: 118121 --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2614c7da6c..2b8023b5ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,13 @@ include(ECMInstallIcons) add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0) +# require at least gcc 4.8 +if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") + if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.8") + message(SEND_ERROR "Version ${CMAKE_CXX_COMPILER_VERSION} of the ${CMAKE_CXX_COMPILER_ID} C++ compiler is not supported. Please use version 4.8 or later.") + endif() +endif() + find_package(Qt5Multimedia QUIET) set_package_properties(Qt5Multimedia PROPERTIES PURPOSE "Runtime-only dependency for effect video playback"