Separate clang and gcc compiler workarounds for kwin override policy
This commit is contained in:
parent
5c18b6d76c
commit
d4fce7a3ad
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue