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
This commit is contained in:
Martin Gräßlin 2014-05-14 10:13:23 +02:00
parent f70951ef76
commit 32bcd59fc9

View file

@ -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"