I had a similar issue, CMake finding a vendor-installed Boost only, but my cluster had a locally installed version which is what I wanted it to use. Red Hat Linux 6.
Anyway, it looks like all the BOOSTROOT
, BOOST_ROOT
, and Boost_DIR
stuff would get annoyed unless one also sets Boost_NO_BOOST_CMAKE
(e.g add to cmd line -DBoost_NO_BOOST_CMAKE=TRUE
).
(I will concede the usefulness of CMake for multiplatform, but I can still hate it.)