diff --git a/cpp/cmake/modules/ConfigureCUDA.cmake b/cpp/cmake/modules/ConfigureCUDA.cmake index 2134482917..e2dd829da2 100644 --- a/cpp/cmake/modules/ConfigureCUDA.cmake +++ b/cpp/cmake/modules/ConfigureCUDA.cmake @@ -13,8 +13,8 @@ # ============================================================================= if(DISABLE_DEPRECATION_WARNINGS) - list(APPEND CUVS_CXX_FLAGS -Wno-deprecated-declarations) - list(APPEND CUVS_CUDA_FLAGS -Xcompiler=-Wno-deprecated-declarations) + list(APPEND CUVS_CXX_FLAGS -Wno-deprecated-declarations -DRAFT_HIDE_DEPRECATION_WARNINGS) + list(APPEND CUVS_CUDA_FLAGS -Xcompiler=-Wno-deprecated-declarations -DRAFT_HIDE_DEPRECATION_WARNINGS) endif() # Be very strict when compiling with GCC as host compiler (and thus more lenient when compiling with