Skip to content

Commit cca1634

Browse files
authored
build: use PROJECT_ROOT_DIR to fix build as submodule (alibaba#250)
1 parent 0489b8e commit cca1634

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/core/algorithm/hnsw_rabitq/CMakeLists.txt

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

44
if(APPLE)
55
set(APPLE_FRAMEWORK_LIBS
@@ -27,7 +27,7 @@ foreach(CC_SRCS ${ALL_TEST_SRCS})
2727
${CMAKE_THREAD_LIBS_INIT}
2828
${CMAKE_DL_LIBS}
2929
SRCS ${CC_SRCS}
30-
INCS . ${CMAKE_SOURCE_DIR}/src/core ${CMAKE_SOURCE_DIR}/src/core/algorithm/hnsw_rabitq
30+
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm/hnsw_rabitq
3131
LDFLAGS ${APPLE_FRAMEWORK_LIBS}
3232
)
3333
cc_test_suite(hnsw_rabitq ${CC_TARGET})

0 commit comments

Comments
 (0)