运行findboost.cmake最基本的示例是什么

运行findboost.cmake最基本的示例是什么,cmake,firebreath,Cmake,Firebreath,我在准备使用cmake脚本的firebreath visual studio解决方案时遇到问题。问题似乎出在findboost.cmake模块上。这就是我得到的错误: CMake Error at C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/F indBoost.cmake:1200 (message): Unable to find the requested Boost libraries. Boo

我在准备使用cmake脚本的firebreath visual studio解决方案时遇到问题。问题似乎出在findboost.cmake模块上。这就是我得到的错误:

CMake Error at C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/F
indBoost.cmake:1200 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.50.0

  Boost include path: c:/boost

  The following Boost libraries could not be found:

          boost_date_time

  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.
我的boost根目录应该是c:\boost

测试该模块最基本的脚本或命令行(Windows 7)是什么?我需要找出参数的正确值:BOOST\u ROOT、BOOST\u INCLUDE\u DIR和BOOST\u LIBRARYDIR

谢谢你, Christian

你可以看到一些例子

您还可以使用boost调试选项:

set (Boost_DEBUG Yes)
我确信,如果这个版本的CMake能够搜索Boost-1.50,那么您可以使用

    set(Boost_ADDITIONAL_VERSIONS "1.50" "1.50.0")

这有助于查找Boost的最新版本

谢谢您的回答。我现在设置了各种变量,但仍然不起作用。我在这里发布了输出:出于某种原因,我总是以Boost\u FOUND=FALSE结束。你能找出缺少什么吗?我的问题是我需要Boost\u USE\u STATIC\u RUNTIME=off,这样findboost.cmake就可以匹配我的库的名称。我发现Boost的头搜索正确,所以问题只是找到库(线程等)。也许有些编译过的库丢失了。尝试使用选项build type=complete(或类似的选项)重建boost