arobenko / embxx

embxx - Embedded C++ Library
GNU General Public License v3.0
263 stars 36 forks source link

fix, to allow custom installations of boost #9

Closed ajneu closed 8 years ago

ajneu commented 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 -DBOOST_ROOT=/my/path/to/boost ..

where /my/path/to/boost/include and /my/path/to/boost/lib exist.

. . OR call cmake with the flags BOOST_INCLUDEDIR, BOOST_LIBRARYDIR. Example:

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

arobenko commented 8 years ago

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.