CMake no longer finds static Boost libraries

后端 未结 1 1068
盖世英雄少女心
盖世英雄少女心 2021-02-15 13:02

I am working on a large C++ project that relies on Boost. The project is built on a variety of platforms using CMake. On my Windows machine, I am using CMake 2.8.9, Visual Studi

相关标签:
1条回答
  • 2021-02-15 13:38

    In your debug output, it looks like Boost_USE_STATIC_LIBS is unset, but yet you're looking for the static boost libs.

    Try running CMake again but with -DBoost_USE_STATIC_LIBS=ON added to the command.

    In fact, your CMakeLists.txt wraps this in another variable USE_STATIC_BOOST. Setting that to ON should have the same effect.

    0 讨论(0)
提交回复
热议问题