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)