Cmake:告诉 find_package 查找 32 位库(而不是 64 位库)

发布于 2024-09-14 17:20:01 字数 111 浏览 2 评论 0原文

到目前为止,我还没有在 cmake 文档中找到这个,但我需要将一个程序链接到我的 mac 上的 32 位 boost 库,并且我不知道如何告诉 cmake 使用 find_package 查找 32 位版本。

So far I haven't found this in the cmake documentation, but I need to link a program against a 32bit boost library on my mac and I couldn't figure out how to tell cmake to look for the 32bit version using find_package..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤独患者 2024-09-21 17:20:01

这些库是否可以使用不同的前缀?然后定义 BOOST_ROOT 变量以指向特定前缀可能会有所帮助。

否则,您当然可以在 CMake 配置后覆盖找到的库,例如使用 ccmake。

Are the libraries available in different Prefixes? Then defining the BOOST_ROOT variable to point to the specific prefix might help.

Otherwise, you are of course free to overwrite the found libraries after the CMake configuration, e.g. by using ccmake.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文