From e5065f18ad91b9a9dd800ac724e71418048467ef Mon Sep 17 00:00:00 2001 From: Jant1L <1399324235@qq.com> Date: Fri, 20 Dec 2024 07:33:23 +0000 Subject: [PATCH] cmake fix --- src/BuildLGraphApi.cmake | 3 +++ src/BuildLGraphServer.cmake | 2 ++ test/CMakeLists.txt | 1 + 3 files changed, 6 insertions(+) diff --git a/src/BuildLGraphApi.cmake b/src/BuildLGraphApi.cmake index 3492af8389..c4928c4c15 100644 --- a/src/BuildLGraphApi.cmake +++ b/src/BuildLGraphApi.cmake @@ -123,11 +123,13 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") pthread rt z + faiss ) elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") target_link_libraries(${TARGET_LGRAPH} PUBLIC vsag + faiss ${Boost_LIBRARIES} omp pthread @@ -137,6 +139,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") else () target_link_libraries(${TARGET_LGRAPH} PUBLIC vsag + faiss rt omp pthread diff --git a/src/BuildLGraphServer.cmake b/src/BuildLGraphServer.cmake index 8c9486b7c1..61a1c2cb37 100644 --- a/src/BuildLGraphServer.cmake +++ b/src/BuildLGraphServer.cmake @@ -81,6 +81,7 @@ if (NOT (CMAKE_SYSTEM_NAME STREQUAL "Darwin")) geax_isogql bolt vsag + faiss # begin static linking -Wl,-Bstatic cpprest @@ -140,4 +141,5 @@ target_link_libraries(${TARGET_SERVER} ${TARGET_SERVER_LIB} librocksdb.a vsag + faiss ) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 71584fb240..45a7c9cf77 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -143,6 +143,7 @@ add_executable(unit_test target_link_libraries(unit_test vsag + faiss lgraph_server_lib geax_isogql bolt