find_package() doesn't detect boost on Windows Cmake

后端 未结 4 562
广开言路
广开言路 2020-12-23 15:21

I\'m using a windows system. I want to use the Boost library using CMake. I\'ve installed boost on C:\\boost_1_55_0\\ Here is my CMakeLists.txt file

set(Boos         


        
4条回答
  •  别那么骄傲
    2020-12-23 16:04

    You need to set the environment variable BOOST_ROOT to c:\boost_1_55_0 before running cmake. Also look at cmake --help-module FindBoost for more help.

提交回复
热议问题