金庆的专栏

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  423 随笔 :: 0 文章 :: 454 评论 :: 0 Trackbacks

CMake更新到3.1.0,Boost更新到1.57,结果CMake搜索Boost失败:

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
 
已设置环境变量 BOOST_ROOT = C:\Boost

查看 FindBoost.cmake 脚本,发现它仅搜索已知的版本,而最新版 1.57 还未添加:

  set(_Boost_KNOWN_VERSIONS ${Boost_ADDITIONAL_VERSIONS}
    "1.56.0" "1.56" "1.55.0" "1.55" "1.54.0" "1.54"
    "1.53.0" "1.53" "1.52.0" "1.52" "1.51.0" "1.51"
    "1.50.0" "1.50" "1.49.0" "1.49" "1.48.0" "1.48" "1.47.0" "1.47" "1.46.1"

添加 “1.57” 后即成功。

FindBoost.cmake 应该添加 Boost 未来版本才好。


posted on 2015-01-20 12:18 金庆 阅读(1247) 评论(0)  编辑 收藏 引用 所属分类: 1. C/C++5. 软工与管理9. 其它

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理