diff --git a/CMakeLists.txt b/CMakeLists.txt index 857b3fb10e..bcb12f95f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,9 +53,9 @@ add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_USE_QSTRINGBUILDER) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) -if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override") -endif() +# 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") find_package(Qt5Multimedia QUIET) set_package_properties(Qt5Multimedia PROPERTIES