From 28786de857602f99b9343d899e3f9ff5addedc67 Mon Sep 17 00:00:00 2001 From: divyegala Date: Wed, 13 Nov 2024 19:50:51 -0800 Subject: [PATCH] attempt to link hnswlib to raft::compiled --- cpp/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index a74afeea7c..cce70df579 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -210,9 +210,6 @@ add_library(raft::raft ALIAS raft) target_include_directories( raft INTERFACE "$" "$" ) -if(BUILD_CAGRA_HNSWLIB) - target_link_libraries(raft INTERFACE hnswlib::hnswlib) -endif() if(NOT BUILD_CPU_ONLY) # Keep RAFT as lightweight as possible. Only CUDA libs and rmm should be used in global target. @@ -619,6 +616,9 @@ if(TARGET raft_lib AND (NOT TARGET raft::raft_lib)) endif() target_link_libraries(raft_compiled INTERFACE raft::raft $) +if(BUILD_CAGRA_HNSWLIB) + target_link_libraries(raft_compiled PUBLIC hnswlib::hnswlib) +endif() # ################################################################################################## # * raft_compiled_static----------------------------------------------------------------------------