abseil / abseil/abseil-cpp

[CMake]: Could not find a configuration file for package "absl" that is compatible with requested version ""

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

描述

### Describe the issue

At this point I'm doing cross-compilation on other platforms.
I use "find_package" to access absl lib.
When I write "find_package(absl REQUIRED)" in the CMakeLists.txt, The following error occurred:
CMake Error at cartographer/CMakeLists.txt:91 (find_package):
Could not find a configuration file for package "absl" that is compatible
with requested version "".

The following configuration files were considered but not accepted:

/usr/local/lib/cmake/absl/abslConfig.cmake, version: 20211102 (64bit)

But I didn't specify any version.

### Steps to reproduce the problem

After successfully built ABSL,The absl library is referenced.

### What version of Abseil are you using?

git checkout 215105818dfde3174fe799600bb0f3cae233d0bf # 20211102.0

### What operating system and version are you using?

Ubuntu20.04

### What compiler and version are you using?

I don't know

### What build system are you using?

i686-pc-linux-gnu

### Additional context

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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