Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake依赖包版本号无效 #2385

Closed
YSRForGithub opened this issue May 26, 2022 · 1 comment
Closed

cmake依赖包版本号无效 #2385

YSRForGithub opened this issue May 26, 2022 · 1 comment
Labels
Milestone

Comments

@YSRForGithub
Copy link

Xmake 版本

2.6.6

操作系统版本和架构

Linux 5.17.9-arch1-1

描述问题

调用add_requires("cmake::xxx 1.2.3") 时,未能正确找到相应版本库。猜测是文件 cmake/find_package.lua 中 opt.required_version 变量名错误,改为 opt.require_version 后就正常了

期待的结果

期待能够支持按包版本号查找cmake包

工程配置

No response

附加信息和错误日志

No response

@waruqi
Copy link
Member

waruqi commented May 27, 2022

修复了,更新到 dev 版本试下

xmake update -s dev

@waruqi waruqi added this to the v2.6.7 milestone May 27, 2022
@waruqi waruqi closed this as completed May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants