Closed ajneu closed 8 years ago
Now works for custom boost installations (i.e. when boost is NOT gotten from the system path)
Call cmake, with the flag BOOST_ROOT. Example:
cmake
BOOST_ROOT
cmake -DBOOST_ROOT=/my/path/to/boost ..
where /my/path/to/boost/include and /my/path/to/boost/lib exist.
/my/path/to/boost/include
/my/path/to/boost/lib
. . OR call cmake with the flags BOOST_INCLUDEDIR, BOOST_LIBRARYDIR. Example:
BOOST_INCLUDEDIR
BOOST_LIBRARYDIR
cmake -DBOOST_INCLUDEDIR=/my/path/to/boost/include -DBOOST_LIBRARYDIR=/my/path/to/boost/lib
Ref: https://cmake.org/cmake/help/latest/module/FindBoost.html
Hi Albert, I've used your pull request as a base, but modified the code to have single find_package(Boost) statement in the main CMakeLists.txt.
Now works for custom boost installations (i.e. when boost is NOT gotten from the system path)
Call
cmake
, with the flagBOOST_ROOT
. Example:where
/my/path/to/boost/include
and/my/path/to/boost/lib
exist.. . OR call
cmake
with the flagsBOOST_INCLUDEDIR
,BOOST_LIBRARYDIR
. Example:Ref: https://cmake.org/cmake/help/latest/module/FindBoost.html