首页 > 解决方案 > 提升 1.69 和 CMake 3.13

问题描述

我刚刚更新了我的 MSYS2 并收到了新版本的 boost 库 1.69.0。但是在这个更新之后,必须支持这个 boost 版本的 CMake 3.13.1 对我说:

CMake Error at C:/Program Files/JetBrains/CLion 2018.2.6/bin/cmake/win/share/cmake-3.13/Modules/FindBoost.cmake:2100 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.69.0

  Boost include path: D:/msys64/mingw64/include

  Could not find the following Boost libraries:

      boost_chrono
      boost_filesystem
      boost_system

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.

正如我所见,CMake 找到了 boost 1.69.0 但没有找到 Boost 库。为什么?使用 Boost 1.68.0 一切都很完美。

问题解决了:

今天我在 MSYS 中检查了更新并收到了更新的包
mingw-w64-x86_64-boost-1.69.0-2

之后 CMake 成功找到了所有 Boost 1.69.0 库

标签: c++boostcmake

解决方案


推荐阅读