GPU: Enable suggest-override for CPP.

This commit is contained in:
Jeroen Bakker 2021-04-09 13:07:21 +02:00
parent e4a2fc57d5
commit 87bfa2b207
Notes: blender-bot 2023-02-13 11:53:50 +01:00
Referenced by commit aa95f8019e, macOS: Fix unknown -Wsuggest-override warning
1 changed files with 4 additions and 0 deletions

View File

@ -381,6 +381,10 @@ endif()
blender_add_lib(bf_gpu "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
target_compile_options(bf_gpu PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wsuggest-override>)
endif()
if(WITH_GTESTS)
if(WITH_OPENGL_DRAW_TESTS)
set(TEST_SRC