From e3bb6312bc79fd19320604b64d3e2dee3b8a9b03 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 18 May 2024 22:01:11 +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 | 4 ++-- cmake-linux/openfst.cmake | 2 +- post_processor/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index 9707341..2ca2dbe 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -21,9 +21,9 @@ endif() if(GRPC) add_executable(grpc_server_main grpc_server_main.cc) - target_link_libraries(grpc_server_main PUBLIC wenet_grpc ${GFLAGS_LIBRARIES}) + target_link_libraries(grpc_server_main PUBLIC wenet_grpc) add_executable(grpc_client_main grpc_client_main.cc) - target_link_libraries(grpc_client_main PUBLIC wenet_grpc ${GFLAGS_LIBRARIES}) + target_link_libraries(grpc_client_main PUBLIC wenet_grpc) endif() if(HTTP) diff --git a/cmake-linux/openfst.cmake b/cmake-linux/openfst.cmake index db13018..0a4ae33 100644 --- a/cmake-linux/openfst.cmake +++ b/cmake-linux/openfst.cmake @@ -69,7 +69,7 @@ find_path(OPENFST_INCLUDE_DIR fst/fst.h PATHS ${OPENFST_ROOT}/include) find_path(OPENFST_BINARY_DIR fstsymbols PATHS ${OPENFST_ROOT}/bin) find_path(OPENFST_LIBRARY_DIR libfst.a PATHS ${OPENFST_ROOT}/lib) find_library(fst NAMES fst PATHS ${OPENFST_ROOT}/lib) -set(OPENFST_LIBRARYS fst GFLAGS_LIBRARY_NOTHREADS GLOG_LIBRARY dl) +set(OPENFST_LIBRARYS fst ${GFLAGS_LIBRARY_NOTHREADS} ${GLOG_LIBRARY} dl) #验证库和文件是否被找到 include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) FIND_PACKAGE_HANDLE_STANDARD_ARGS(Openfst DEFAULT_MSG diff --git a/post_processor/CMakeLists.txt b/post_processor/CMakeLists.txt index 356527e..5fe191c 100644 --- a/post_processor/CMakeLists.txt +++ b/post_processor/CMakeLists.txt @@ -7,4 +7,4 @@ add_library(post_processor STATIC processor/wetext_processor.cc processor/wetext_token_parser.cc ) -target_link_libraries(post_processor PUBLIC utils ${OPENFST_LIBRARYS}) +target_link_libraries(post_processor PUBLIC utils;${OPENFST_LIBRARYS})