开发者

Cmake: Telling find_package to look for the 32 bit library (instead of the 64bit lib)

开发者 https://www.devze.com 2023-01-11 23:22 出处:网络
So far I haven\'t found this in the cmake documentation, but I need to link a program against a 32bit boost开发者_Go百科 library on my mac and I couldn\'t figure out how to tell cmake to look for the

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消