CMake is not able to find BOOST libraries

后端 未结 8 1771
既然无缘
既然无缘 2020-12-07 22:00

I tried everything like:

  1. Configure environment variable
  2. Make fresh build
  3. Re-install BOOST from source
  4. sudo apt-get install libb
8条回答
  •  既然无缘
    2020-12-07 22:50

    Thanks Paul-g for your advise. For my part it was a bit different.

    I installed Boost by following the Step 5 of : https://www.boost.org/doc/libs/1_59_0/more/getting_started/unix-variants.html

    And then I add PATH directory in the "FindBoos.cmake", located in /usr/local/share/cmake-3.5/Modules :

    SET (BOOST_ROOT "../boost_1_60_0")
    SET (BOOST_INCLUDEDIR "../boost_1_60_0/boost")
    SET (BOOST_LIBRARYDIR "../boost_1_60_0/libs")
    
    SET (BOOST_MIN_VERSION "1.55.0")
    set (Boost_NO_BOOST_CMAKE ON)
    

提交回复
热议问题