I'm trying to figure out how to ensure my build uses my internal version of boost. My directory structure looks like:

./CMakeLists.txt
./mylib/CMakeLists.txt
./dependencies/boost/...

How do I structure my find_package to use the internal one?  

I've tried this:

set(BOOST_ROOT "${DEPENDENCY_DIR}/boost")
find_package( Boost 
              COMPONENTS 
                  thread-mt system-mt program_options-mt date_time-mt
                  random-mt
              PATHS ${BOOST_ROOT} 
)

But that gives me the following error:

CMake Error at dependencies/boost/tools/build/CMake/BoostConfig.cmake:98 (boost_report_pretty):
  Unknown CMake command "boost_report_pretty".
Call Stack (most recent call first):
  CMakeLists.txt:287 (find_package)

If I don't specify PATHS (even if I specify BOOST_ROOT), it uses the boost I have installed on my system.

I can't find any documentation on how to actually use Boost.Cmake. :) Help greatly appreciated.

tj
--
Travis Jensen

Read the Software Maven @ http://softwaremaven.innerbrane.com/
Read my LinkedIn profile @ http://www.linkedin.com/in/travisjensen
Read my Twitter mumblings @ http://twitter.com/SoftwareMaven
Send me email @ travis.jensen@gmail.com

*What kind of guy calls himself the Software Maven???*