From ac85fa69ae10fac2c12f482380142bd9f99822f2 Mon Sep 17 00:00:00 2001 From: Paul Taylor <178183+trxcllnt@users.noreply.github.com> Date: Thu, 23 May 2024 04:12:37 -0700 Subject: [PATCH] hide RAFT #pragma deprecation warnings (#114) Define `-DRAFT_HIDE_DEPRECATION_WARNINGS` added in https://github.com/rapidsai/raft/pull/2271. Authors: - Paul Taylor (https://github.com/trxcllnt) - Corey J. Nolet (https://github.com/cjnolet) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: https://github.com/rapidsai/cuvs/pull/114 --- cpp/cmake/modules/ConfigureCUDA.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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