diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a32bde1..d1267c63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -227,6 +227,9 @@ else() ecbuild_add_cxx_flags("-Wno-unused-variable" NO_FAIL) ecbuild_add_cxx_flags("-Wno-reorder" NO_FAIL) ecbuild_add_cxx_flags("-Wno-sign-compare" NO_FAIL) + # For NVIDIA + ecbuild_add_cxx_flags("--diag_suppress=partial_override" NO_FAIL) + ecbuild_add_cxx_flags("--diag_suppress=virtual_function_decl_hidden" NO_FAIL) # set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-overloaded-virtual -Wno-unused-variable -Wno-reorder-ctor -Wno-sign-compare")