Skip to content

Commit f876491

Browse files
authored
conditionally include hnsw source (#2135)
This PR conditionally includes `hnsw` sources, to prevent build errors like those seen in cuGraph after #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 2822532 commit f876491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/CMakeLists.txt

+1-1
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)