【发布时间】:2020-10-15 00:04:10
【问题描述】:
问题
我有一个包含以下内容的 CMakeLists.txt 文件:
pkg_check_modules(FOO REQUIRED foo>=0.1.0.1)
当我在该目录中使用 cmake3 -G Ninja . 运行 Cmake v3.17.2 时:
Checking for module 'foo>=0.1.0.1'
Requested 'foo >= 0.1.0.1' but version of foo is Uncontrolled
详情
- 这是在 RHEL7 中运行的
-
yum info foo | grep Version返回Version : 0.1.0.1.20200417git602d018 - foo 模块由我所在的团队创建
问题
我如何告诉 CMake 我的 foo 库是什么版本,这样它才不会“不受控制”?
【问题讨论】:
标签: cmake dependencies version versioning dependency-management