find_package() doesn't detect boost on Windows Cmake

后端 未结 4 559
广开言路
广开言路 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:02

    In addition to the BOOST_ROOT I also had to set the BOOST_LIBRARYDIR variable to succeed. In my case this was c:\Program Files\boost_1_56_0\lib64-msvc-12.0

提交回复
热议问题