Browse Source

2024.5.10-去除ITN的依赖构建

master
Administrator 1 year ago
parent
commit
42840913f8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cmake-linux/grpc.cmake

+ 2
- 1
cmake-linux/grpc.cmake

@ -41,6 +41,7 @@ find_package(Protobuf CONFIG REQUIRED)
find_package(gRPC CONFIG REQUIRED) find_package(gRPC CONFIG REQUIRED)
include_directories(${grpc_build_dir}/include) include_directories(${grpc_build_dir}/include)
link_directories(${grpc_build_dir}/lib)
# local proto file # local proto file
set(PROTO_DIR "${CMAKE_CURRENT_SOURCE_DIR}/bin_grpc") set(PROTO_DIR "${CMAKE_CURRENT_SOURCE_DIR}/bin_grpc")
set(grpc_BINARY_DIR "${grpc_build_dir}/bin") set(grpc_BINARY_DIR "${grpc_build_dir}/bin")
@ -50,5 +51,5 @@ message(${BoldGreen}
grpc_cpp_plugin${grpc_BINARY_DIR}/grpc_cpp_plugin\n grpc_cpp_plugin${grpc_BINARY_DIR}/grpc_cpp_plugin\n
helloworld${PROTO_DIR}/helloworld.proto${ColourReset}) helloworld${PROTO_DIR}/helloworld.proto${ColourReset})
list(APPEND third_party_libraries gRPC::grpc++ gRPC::grpc++_reflection libprotobuf)
list(APPEND third_party_libraries grpc++ grpc++_reflection libprotobuf)

Loading…
Cancel
Save