Skip to content

Commit faadf62

Browse files
fix: use project root for diskann cmake paths (#464)
1 parent 823b5e6 commit faadf62

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/algorithm/diskann/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include(${CMAKE_SOURCE_DIR}/cmake/bazel.cmake)
1+
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
22

33
file(GLOB_RECURSE ALL_SRCS *.cc *.c)
44

tests/core/algorithm/diskann/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include(${CMAKE_SOURCE_DIR}/cmake/bazel.cmake)
1+
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
22

33
file(GLOB_RECURSE ALL_TEST_SRCS *_test.cc)
44

@@ -9,6 +9,6 @@ foreach(CC_SRCS ${ALL_TEST_SRCS})
99
STRICT
1010
LIBS zvec_ailego core_framework core_utility core_metric core_quantizer core_knn_cluster core_plugin core_knn_diskann
1111
SRCS ${CC_SRCS}
12-
INCS . ${CMAKE_SOURCE_DIR}/src/core ${CMAKE_SOURCE_DIR}/src/core/algorithm/diskann
12+
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm/diskann
1313
)
1414
endforeach()

0 commit comments

Comments
 (0)