I installed boost from the source file in CentOS7
, I do these steps :
- wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz
- tar -xzf boost_1_*
- cd boost_1_*
- ./bootstrap.sh --prefix=/opt/boost
- ./b2 install --prefix=/opt/boost --with=all
I checked and all file was correctly in /opt/boost/lib
then I want to compile my project but CMake couldn't find the correct version of boost :
I compile it whit this command :
cmake -DBOOST_INCLUDEDIR=/opt/boost/lib/ -DCMAKE_BUILD_TYPE=Debug .. -G "Unix Makefiles"
I got this Error :
CMake Error at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:2048 (message):
Unable to find the requested Boost libraries.Boost version: 1.53.0
Boost include path: /usr/include
Detected version of Boost is too old. Requested version was 1.67 (or newer). Call Stack (most recent call first): CMakeLists.txt:13 (FIND_PACKAGE)
what should I do?