且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CMake不会发现Boost库

更新时间:2022-06-25 03:48:33

好吧,我解决了这个问题,但我并不完全满意,我的解决方案。
在我看来,问题是,是的bjam创建一个复杂的文件夹结构。现在,我刚才复制的boost_1_47_0 \\ bin.v2 \\库\\序列\\ build中\\ MSVC-9.0 \\调试\\链接静态\\线程的多到boost_1_47_0 \\ LIB库文件。我有手这样做,但我不使用很多Boost库,所以这一步是确定在我看来。我会记录我的解决方案预留了CMake的脚本,以便其他用户应与相处。

Well, I solved the problem, but I'm not fully satisfied with my solution. In my opinion the problem was, that bjam create a to complex folder structure. Now I just copied the library files from "boost_1_47_0\bin.v2\libs\serialization\build\msvc-9.0\debug\link-static\threading-multi" to "boost_1_47_0\lib". I have to do this by hand but I'm not using that many boost libraries, so this step is ok in my opinion. I will document my solution aside the cmake script, so other users should get along with that.