开发者

CMakes can't find boost (and most anything else) on Windows

So I've got boost installed in开发者_如何学Go C:\Program Files\boost_1_47_0\, with the library files in ./stage/lib/ and include files in ./boost/*

So I set an environment variable, BOOST_ROOT to C:\Program Files\boost_1_47_0 and run cmake on my project. I get errors that it can't find the requested boost libraries (math_c99, program_options, unit_test_framework).

This is odd, since I have the .lib files for all of them in BOOST_ROOT\stage\lib, and the include files are all there too.

I even added a SET(BOOST_LIBRARYDIR ... according to this question but still no luck. Any idea what gives?


Try to add the line

SET(Boost_ADDITIONAL_VERSIONS "1.47" "1.47.0")

before calling find_package.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜