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)