GPU: Enable suggest-override for CPP.
This commit is contained in:
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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue