diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-04-09 14:07:21 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-04-09 14:07:53 +0300 |
commit | 87bfa2b207b90b5e34ebd835a23c2a82afbed878 (patch) | |
tree | 2a36a36d7104d4e2f3298ed051a02d75e26ce691 /source/blender/gpu | |
parent | e4a2fc57d5643ac5cad5070dc53d3818540d26b3 (diff) |
GPU: Enable suggest-override for CPP.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 69a79e2f2ce..923426c21a6 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -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 |