Skip to content

Commit cfa14de

Browse files
authored
conditionally include hnsw source (rapidsai#2135)
This PR conditionally includes `hnsw` sources, to prevent build errors like those seen in cuGraph after rapidsai#2022 was merged. See also: rapidsai/cugraph#4121, rapidsai/cugraph#4122 Authors: - Divye Gala (https://github.com/divyegala) Approvers: - Corey J. Nolet (https://github.com/cjnolet) - Bradley Dice (https://github.com/bdice) - Robert Maynard (https://github.com/robertmaynard)
1 parent ed80374 commit cfa14de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ if(RAFT_COMPILE_LIBRARY)
433433
src/raft_runtime/neighbors/cagra_search.cu
434434
src/raft_runtime/neighbors/cagra_serialize.cu
435435
src/raft_runtime/neighbors/eps_neighborhood.cu
436-
src/raft_runtime/neighbors/hnsw.cpp
436+
$<$<BOOL:${BUILD_CAGRA_HNSWLIB}>:src/raft_runtime/neighbors/hnsw.cpp>
437437
src/raft_runtime/neighbors/ivf_flat_build.cu
438438
src/raft_runtime/neighbors/ivf_flat_search.cu
439439
src/raft_runtime/neighbors/ivf_flat_serialize.cu

0 commit comments

Comments
 (0)