admin管理员组文章数量:1356585
I sometimes try to build repositories which use find_package()
for their dependencies, but - their packages have no find scripts in the repo or in CMake's own set of find scripts; nor do these dependencies - when installed as Linux distribution packages - come with .cmake
files . But - those packages are installed on my system and one can find them with pkg-config - compilation flags and linking flags (and maybe other stuff).
Now, I can of course manually add pkg-config lines to my file, as described in this ansawer among others. But that would mean I have to mess with ever single repository I have this issue with.
What I would like to do is to tell CMake, on the command-line, that it should also use pkg-config
to search for packages when I specify find-package()
- to make my life easier.
本文标签: Can I get CMake to try pkgconfig itself for finding packagesStack Overflow
版权声明:本文标题:Can I get CMake to try pkg-config _itself_ for finding packages? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744026914a2578203.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论