我有从源代码编译的最新 cmake 3.0.2,还安装了 libboost-all-dev。而 find_package(Boost) 找不到。这是 cmake 的输出:
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost of BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Run Code Online (Sandbox Code Playgroud)
安装 Boost 后是否需要手动设置任何变量才能使其对 cmake 可见?
谢谢。
libboost-all-dev
你用的是什么版本?我假设您使用的是 v1.53.0。
尝试安装libboost1.54-all-dev
。
归档时间: |
|
查看次数: |
27585 次 |
最近记录: |