From 1294262c66f878d1aef3897b08766107dad646d2 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 18 May 2024 16:10:56 +0800 Subject: [PATCH] =?UTF-8?q?2024.5.16=20=E6=B5=8B=E8=AF=95=E6=95=B4?= =?UTF-8?q?=E4=BD=93=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/CMakeLists.txt | 2 +- grpc/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index d829ea7..e2d9bc0 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -6,7 +6,7 @@ endif() message(STATUS "gflags_LIBRARIES: ${gflags_LIBRARIES}") add_executable(label_checker_main label_checker_main.cc) -target_link_libraries(label_checker_main PUBLIC decoder gflags_nothreads_static) +target_link_libraries(label_checker_main PUBLIC decoder) if(TORCH) add_executable(api_main api_main.cc) diff --git a/grpc/CMakeLists.txt b/grpc/CMakeLists.txt index f4c3778..a2eb5f4 100644 --- a/grpc/CMakeLists.txt +++ b/grpc/CMakeLists.txt @@ -18,12 +18,12 @@ add_custom_command( # grpc_server/client link_directories(${protobuf_BINARY_DIR}/lib) -add_library(wenet_grpc SHARED +add_library(wenet_grpc STATIC grpc_client.cc grpc_server.cc wenet.pb.cc wenet.grpc.pb.cc ) target_link_libraries(wenet_grpc PUBLIC ${REFLECTION} - ${GRPC_GRPCPP} + ${GRPC_GRPCPP} gflags_nothreads_static ${PROTOBUF_LIBPROTOBUF} decoder)