Separate clang and gcc compiler workarounds for kwin override policy

This commit is contained in:
David Edmundson 2019-01-24 16:49:42 +00:00
parent 5c18b6d76c
commit d4fce7a3ad

View file

@ -55,7 +55,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# This is a workaround/compromise for a Kwin specific policy of not applying the relevant override fix.
# See thread in D18167.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override -Wno-suggest-override")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override")
endif()
find_package(Qt5Multimedia QUIET)
set_package_properties(Qt5Multimedia PROPERTIES