diff --git a/src/BuildLGraphApi.cmake b/src/BuildLGraphApi.cmake index c4928c4c15..a79877193a 100644 --- a/src/BuildLGraphApi.cmake +++ b/src/BuildLGraphApi.cmake @@ -123,13 +123,13 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") pthread rt z - faiss + libfaiss.a ) elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") target_link_libraries(${TARGET_LGRAPH} PUBLIC vsag - faiss + libfaiss.a ${Boost_LIBRARIES} omp pthread @@ -139,7 +139,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") else () target_link_libraries(${TARGET_LGRAPH} PUBLIC vsag - faiss + libfaiss.a rt omp pthread diff --git a/src/BuildLGraphServer.cmake b/src/BuildLGraphServer.cmake index 61a1c2cb37..e436b1873d 100644 --- a/src/BuildLGraphServer.cmake +++ b/src/BuildLGraphServer.cmake @@ -81,7 +81,7 @@ if (NOT (CMAKE_SYSTEM_NAME STREQUAL "Darwin")) geax_isogql bolt vsag - faiss + libfaiss.a # begin static linking -Wl,-Bstatic cpprest @@ -141,5 +141,5 @@ target_link_libraries(${TARGET_SERVER} ${TARGET_SERVER_LIB} librocksdb.a vsag - faiss + libfaiss.a ) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 45a7c9cf77..80eae554e3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -143,7 +143,7 @@ add_executable(unit_test target_link_libraries(unit_test vsag - faiss + libfaiss.a lgraph_server_lib geax_isogql bolt