Build system: Set -Wno-deprecated-copy only for clang 10

This commit is contained in:
Shauren
2020-04-26 01:48:41 +02:00
parent 7272508cb4
commit 7fdeb259ba

View File

@@ -12,8 +12,13 @@ if(WITH_WARNINGS)
-Winit-self
-Wfatal-errors
-Wno-mismatched-tags
-Woverloaded-virtual
-Wno-deprecated-copy) # warning in g3d
-Woverloaded-virtual)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
target_compile_options(trinity-warning-interface
INTERFACE
-Wno-deprecated-copy) # warning in g3d
endif()
message(STATUS "Clang: All warnings enabled")
endif()