Paste P292

Masterwork From Distant Lands
ActivePublic

Authored by davidedmundson on Thu, Jan 24, 4:49 PM.
commit 260e4217d256c0999bdf6490c1b0dd91366c6655
Author: David Edmundson <kde@davidedmundson.co.uk>
Date: Thu Jan 24 16:49:42 2019 +0000
Separate clang and gcc compiler workarounds
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bcb12f95f..d94aba35f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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
davidedmundson edited the content of this paste. (Show Details)Thu, Jan 24, 4:49 PM
davidedmundson changed the title of this paste from untitled to Masterwork From Distant Lands.