diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index 6a7fb6835e60d553cb31aa0adad243d008918225..cc577e213817292fb1192435a2be6f159ebc3062 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -161,6 +161,17 @@ set(server_libs metrics ) +set(knowhere_libs + knowhere + SPTAGLibStatic + arrow + jemalloc_pic + faiss + openblas + lapack + tbb + ) + add_executable(milvus_server ${config_files} ${server_files} @@ -170,9 +181,17 @@ add_executable(milvus_server ) if (ENABLE_LICENSE STREQUAL "ON") - target_link_libraries(milvus_server ${server_libs} license_check ${third_party_libs}) + target_link_libraries(milvus_server + ${server_libs} + license_check + ${third_party_libs} + ${knowhere_libs}) else () - target_link_libraries(milvus_server ${server_libs} ${third_party_libs}) + target_link_libraries(milvus_server + ${server_libs} + ${third_party_libs} + ${knowhere_libs} + ) endif() if (ENABLE_LICENSE STREQUAL "ON") diff --git a/cpp/src/sdk/examples/simple/main.cpp b/cpp/src/sdk/examples/simple/main.cpp index 499b8a9935843f5435d7834b163334717af80682..3a7880997d11afa9660bdf092444e7d8d8e02c1f 100644 --- a/cpp/src/sdk/examples/simple/main.cpp +++ b/cpp/src/sdk/examples/simple/main.cpp @@ -51,7 +51,7 @@ main(int argc, char *argv[]) { } ClientTest test; - test.Test(address, port); + test.Test("", port); printf("Client stop...\n"); return 0; diff --git a/cpp/unittest/db/CMakeLists.txt b/cpp/unittest/db/CMakeLists.txt index b2720f70062e456a7e71c6c0feb15bb1c2f10735..3b0fb11b2053397fa7a8042aec454ece2adad563 100644 --- a/cpp/unittest/db/CMakeLists.txt +++ b/cpp/unittest/db/CMakeLists.txt @@ -49,6 +49,17 @@ set(db_libs mysqlpp ) -target_link_libraries(db_test ${db_libs} ${unittest_libs}) +set(knowhere_libs + knowhere + SPTAGLibStatic + arrow + jemalloc_pic + faiss + openblas + lapack + tbb + ) + +target_link_libraries(db_test ${db_libs} ${unittest_libs} ${knowhere_libs}) install(TARGETS db_test DESTINATION bin)