abseil / abseil/abseil-cpp

Does Conan package need to provide the library with 'absl' name?

未关闭
#677 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
18.1k
派生
3.2k
平均合并
20 小时 36 分钟
30 天内合并 PR
1

描述

https://github.com/abseil/abseil-cpp/blob/a1d6689907864974118e592ef2ac7d716c576aad/conanfile.py#L46

I am embarking on the perilous road of packaging gRPC with Conan. gRPC depends on Abseil and
looks for it as
```
abslConfig.cmake
absl-config.cmake
```

The bincrafters abseil/20200205 package contains the following lines at https://github.com/conan-io/conan-center-index/blob/da4c194576212941e63c8de3a81fa07eb02855e1/recipes/abseil/all/conanfile.py#L150
```
self.cpp_info.names["cmake_find_package"] = "absl"
self.cpp_info.names["cmake_find_package_multi"] = "absl"
```

Without those lines, my locally build Conan package from 20200225.2 tag produces:
```
abseilConfig.cmake
abseilConfigVersion.cmake
abseilTarget-release.cmake
abseilTargets.cmake
```

I understand this might be a breaking change, but I suspect there are more users of Abseil out there who call the package by absl.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。