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})