Cmake:告诉 find_package 查找 32 位库(而不是 64 位库)
到目前为止,我还没有在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些库是否可以使用不同的前缀?然后定义 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.