我在准备使用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.
我的提升根应该是c:\ boost。
测试该模块的最基本的脚本或命令行(Windows 7)是什么?我需要找出参数的正确值:BOOST_ROOT,BOOST_INCLUDE_DIR和BOOST_LIBRARYDIR。
非常感谢, 基督教
答案 0 :(得分:1)
您可以看到一些示例here
您还可以使用boost调试选项:
set (Boost_DEBUG Yes)
我注意到,如果此版本的CMake能够搜索Boost-1.50,那么你可以使用
set(Boost_ADDITIONAL_VERSIONS "1.50" "1.50.0")
这有助于查找最新版本的Boost