Skip to content

Commit

Permalink
attempt to link hnswlib to raft::compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
divyegala committed Nov 14, 2024
1 parent eb29492 commit 28786de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ add_library(raft::raft ALIAS raft)
target_include_directories(
raft INTERFACE "$<BUILD_INTERFACE:${RAFT_SOURCE_DIR}/include>" "$<INSTALL_INTERFACE:include>"
)
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.
Expand Down Expand Up @@ -619,6 +616,9 @@ if(TARGET raft_lib AND (NOT TARGET raft::raft_lib))
endif()

target_link_libraries(raft_compiled INTERFACE raft::raft $<TARGET_NAME_IF_EXISTS:raft::raft_lib>)
if(BUILD_CAGRA_HNSWLIB)
target_link_libraries(raft_compiled PUBLIC hnswlib::hnswlib)
endif()

# ##################################################################################################
# * raft_compiled_static----------------------------------------------------------------------------
Expand Down

0 comments on commit 28786de

Please sign in to comment.