diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 75d9788205bd3..26e78141dcd18 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -2200,6 +2200,11 @@ else() endif() endif() +# Workaround CLANG deprecation warning +if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") + set_source_files_properties(painting/qgsmaskpaintdevice.cpp PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations") +endif() + # Generate cpp+header file from .proto file using "protoc" tool (to support MVT encoding of vector tiles) protobuf_generate_cpp(VECTOR_TILE_PROTO_SRCS VECTOR_TILE_PROTO_HDRS vectortile/vector_tile.proto) set(QGIS_CORE_SRCS ${QGIS_CORE_SRCS} ${VECTOR_TILE_PROTO_SRCS})