Skip to content

[Enhancement] cpp client 通过 cmake 引入如何隔离 protobuf #1166

@xukeawsl

Description

@xukeawsl

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Programming Language of the Client

C++

Summary

我通过 add_subdiretory 来引入 cpp 客户端,里面依赖的是 grpc 安装时配套版本的 protobuf,比如说是 3.19.4 版本,现在我这个项目本身引用的是 3.6.1 版本的 protobuf,因为子项目里面通过 find_package 找到的是 3.19.4 版本的,导致我项目本身就依赖不了 3.6.1 版本的了,编译过不了,请问应该如何隔离呢,相当于客户端里面对 3.19.4 版本的依赖可见,不会扩散出去

Motivation

.

Describe the Solution You'd Like

.

Describe Alternatives You've Considered

.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions