From 9bf75e809a3b33551ede2815d4a0b0a50e992d74 Mon Sep 17 00:00:00 2001 From: jinhai Date: Mon, 6 May 2019 22:11:02 +0800 Subject: [PATCH] Add static linking Former-commit-id: 95e2ccc0112a0cff1f1520c7ec8caee07be442d6 --- cpp/src/CMakeLists.txt | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index adc7745c11..6a65fdc349 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -32,10 +32,14 @@ cuda_add_library(vecwise_engine STATIC ${vecwise_engine_src}) set(engine_libs pthread - faiss + libfaiss.a + libgomp.a + libopenblas.a + libgfortran.a + libquadmath.a cudart cublas - sqlite3 + libsqlite3.a ) target_link_libraries(vecwise_engine ${engine_libs} ${cuda_library}) @@ -50,17 +54,17 @@ add_executable(vecwise_server set(server_libs vecwise_engine - rocksdb - thrift + librocksdb.a + libthrift.a pthread - yaml-cpp - boost_system - boost_filesystem + libyaml-cpp.a + libboost_system.a + libboost_filesystem.a pthread - snappy - bz2 - z - zstd + libsnappy.a + libbz2.a + libz.a + libzstd.a ) target_link_libraries(vecwise_server ${server_libs})