mirror of https://github.com/grpc/grpc.git
They use PACKAGE_VERSION to generate version information but PACKAGE_VERSION may be overridden by find_package(). For example, -DgRPC_CARES_PROVIDER=package with c-ares 1.16.0 overrides PACKAGE_VERSION to 1.16.0. Because c-ares-config-version.cmake has the following line: set(PACKAGE_VERSION "1.16.0") Setting PACKAGE_VERSION in version.cmake is a common CMake convention: https://cmake.org/cmake/help/latest/command/find_package.html#version-selection > PACKAGE_VERSION > > full provided version string So we should use gRPC_CPP_VERSION not PACKAGE_VERSION to generate gRPCConfigVersion.cmake and grpc++*.pc.pull/22529/head
parent
7126ffe0eb
commit
bdb3f86064
2 changed files with 6 additions and 6 deletions
Loading…
Reference in new issue