Browse Source

2024.5.10-去除ITN的依赖构建

master
Administrator 1 year ago
parent
commit
4591eba876
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      cmake-linux/grpc.cmake
  2. +2
    -2
      post_processor/post_processor.h

+ 3
- 3
cmake-linux/grpc.cmake

@ -32,12 +32,12 @@ if(NOT EXISTS ${grpc_build_dir})
endif()
set(CMAKE_PREFIX_PATH ${grpc_build_dir}
${grpc_build_dir}/grpc/
${grpc_build_dir}/grpc/cmake/
${grpc_build_dir}/lib/cmake/protobuf
${grpc_build_dir}/lib/cmake/grpc
${CMAKE_PREFIX_PATH})
find_package(Threads REQUIRED)
find_package(Protobuf CONFIG REQUIRED)
find_package(protobuf CONFIG REQUIRED)
find_package(gRPC CONFIG REQUIRED)
include_directories(${grpc_build_dir}/include)

+ 2
- 2
post_processor/post_processor.h

@ -51,8 +51,8 @@ struct PostProcessOptions {
// Post Processor
class PostProcessor {
public:
explicit PostProcessor(PostProcessOptions&& opts) : opts_(std::move(opts)) {}
explicit PostProcessor(const PostProcessOptions& opts) : opts_(opts) {}
// explicit PostProcessor(PostProcessOptions&& opts) : opts_(std::move(opts)) {}
// explicit PostProcessor(const PostProcessOptions& opts) : opts_(opts) {}
// call other functions to do post processing
std::string Process(const std::string& str, bool finish);
// process spaces according to configurations

Loading…
Cancel
Save