CMake doesn't find Boost libraries

前端 未结 5 1539
醉话见心
醉话见心 2020-12-15 06:10

I\'m trying to use a CMake script to compile a Boost-based application on Windows. The header-only libraries work fine, but CMake fails to find the libraries (the following

5条回答
  •  囚心锁ツ
    2020-12-15 06:40

    I've had a problem with this before. For some reason b2 (aka BJam) created the Boost libraries with a leading "lib".

    The CMake script will not look for a file named libboost_thread.lib. It will only find boost_thread.lib. Remove the leading lib and CMake should find them.

提交回复
热议问题