From 4591eba87684b933189b0793b36a68e51466f066 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 10 May 2024 11:06:03 +0800 Subject: [PATCH] =?UTF-8?q?2024.5.10-=E5=8E=BB=E9=99=A4ITN=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake-linux/grpc.cmake | 6 +++--- post_processor/post_processor.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake-linux/grpc.cmake b/cmake-linux/grpc.cmake index 63fa9ab..3243465 100644 --- a/cmake-linux/grpc.cmake +++ b/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) diff --git a/post_processor/post_processor.h b/post_processor/post_processor.h index ba30214..2699cbf 100644 --- a/post_processor/post_processor.h +++ b/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