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 摘要。