CMake: suppress noisy deprecated-copy warnings in freestyle

This commit is contained in:
Campbell Barton
2025-06-13 01:46:40 +00:00
parent 63600f806b
commit 8e1bca3ce4

View File

@@ -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)