From 8e1bca3ce4f6d9253074dde701c30c60849fd185 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 13 Jun 2025 01:46:40 +0000 Subject: [PATCH] CMake: suppress noisy deprecated-copy warnings in freestyle --- source/blender/freestyle/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/blender/freestyle/CMakeLists.txt b/source/blender/freestyle/CMakeLists.txt index 37d1674c852..046ae3b9719 100644 --- a/source/blender/freestyle/CMakeLists.txt +++ b/source/blender/freestyle/CMakeLists.txt @@ -576,6 +576,13 @@ if(WIN32) ) endif() +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + # Suppress noisy warnings from GCC. + # NOTE(@ideasman42): It seems resolving these could introduce functional changes. + # Suppress unless someone is going to address them. + string(APPEND CMAKE_CXX_FLAGS " -Wno-deprecated-copy") +endif() + blender_add_lib(bf_freestyle "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") if(COMMAND target_precompile_headers)