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:
parent
f70951ef76
commit
32bcd59fc9
1 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue