CLion Boost库

时间:2018-06-29 20:26:53

标签: c++ windows boost cmake clion

我已经按照以下命令安装了Boost库:

  1. 我已提取下载的boost_1_67_0.7z文件
  2. 然后我已经执行了命令bootstrap.bat gcc
  3. 然后我执行了命令b2 install --prefix=c:/Boost toolset=gcc
  4. 然后我重新注视计算机,以防万一

然后,我打开了CLion(最新版本),并尝试在find_package(Boost)的程序中包含boost库,但这对我不起作用。我在这里做错了还是有其他问题?

CMake file

Source code for my program

Folder hierarchy

我也想说CMake whereis Boost通过命令安装

set(BOOST_ROOT C:/Boost/include/boost-1_67)

然后CMake可以detect Boost,但是它不想编译,因为它可以 can't find任何文件,例如boost/thread.hpp

0 个答案:

没有答案