Cmake 无法找到 Boost 库 (Windows)

Cmake unable to locate Boost Libraries (Windows)

我目前正在尝试使用 CMake 和 Boost (C++) 在 Windows 上构建 Apache qpid 消息代理。我完成了在 Windows 上设置 Qpid 的初始步骤,如 this file. I set the variable BOOST_ROOT to "C:/< Home >/Downloads/boost_1_61_0" initially so that CMake could find the Boost Libraries (e.g. random, math, chrono, etc.) but I got this log 中指定的那样,它说它只能找到一些库,而不能找到其他库。我想也许文件路径需要包含 Boost 库实际所在的目录(即 C:/< Home >/Downloads/boost_1_61_0/boost),但我无法重置 BOOST_ROOT 环境变量,尽管删除了它并且创建另一个。

有人建议我 this forum 使用 GUI 删除 CMake 的缓存文件,这样我就可以重置变量,但这似乎也不起作用。

我是否为 BOOST_ROOT 使用了正确的文件路径?如果没有,我应该如何改变它?

一些 Boost 库(例如 chrono) need to be compiled first. If you have only downloaded Boost library from the website, you probably have not built these libraries. Check Boost website for instructions how to build on Windows. 该站点还列出了需要构建的库。或者,您可以搜索托管预构建 Boost 库的站点。您可以从以下位置下载并安装那里。