fix: use project root for diskann cmake paths (#464)

This commit is contained in:
feihongxu0824 2026-06-08 09:54:16 +08:00 committed by GitHub
parent 823b5e6824
commit faadf62bd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
include(${CMAKE_SOURCE_DIR}/cmake/bazel.cmake)
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
file(GLOB_RECURSE ALL_SRCS *.cc *.c)

View File

@ -1,4 +1,4 @@
include(${CMAKE_SOURCE_DIR}/cmake/bazel.cmake)
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
file(GLOB_RECURSE ALL_TEST_SRCS *_test.cc)
@ -9,6 +9,6 @@ foreach(CC_SRCS ${ALL_TEST_SRCS})
STRICT
LIBS zvec_ailego core_framework core_utility core_metric core_quantizer core_knn_cluster core_plugin core_knn_diskann
SRCS ${CC_SRCS}
INCS . ${CMAKE_SOURCE_DIR}/src/core ${CMAKE_SOURCE_DIR}/src/core/algorithm/diskann
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm/diskann
)
endforeach()