[CMake] Expected boost path structure.

John Drescher drescherjm at gmail.com
Thu Feb 17 10:11:21 EST 2011


I am trying to get FIND_PACKAGE(BOOST REQUIRED) to work on windows.
After building boost-1.45.0 on windows with the following command

bjam --build-dir="X:\32Bit\VC.90\build\Libraries\boost-1.45.0"
toolset=msvc-9.0 --prefix="X:\32bit\VC.90\Libraries\boost-1.45.0"
--build-type=complete install

and installing I have the following structure for the installed boost.

X:\32bit\VC.90\Libraries\boost-1.45.0\include\boost-1_45\boost
X:\32bit\VC.90\Libraries\boost-1.45.0\lib

I tried to set BOOST_ROOT to X:\32bit\VC.90\Libraries\boost-1.45.0 but
CMake does not find boost with that root.

What is the expected path layout so that setting BOOST_ROOT will find
boost-1.45.0 ?



Thanks,
John M. Drescher


More information about the CMake mailing list