[CMake] Can't use Boost ??

Brad King brad.king at kitware.com
Tue Oct 17 09:22:05 EDT 2006


Matthieu Brucher wrote:
> Hi,
> 
> I'm trying to use Boost in my applications. On Windows, no problem, it
> can now find the good headers and libraries thank to FindBoost.cmake.
> On Linux, on FC5 or on Debian testing, I have cmake 2.4-patch3, with the
> FindBoost.cmake file, but when I launch cmake, i complains that
> BOOST_DIR is not set and that it must be set to the directory containing
> BOOSTConfig.cmake. But I do not posess afile named like that, and
> looking after it on the web - google - did not find a match, so I really
> don't understand why I should have this file on Linux and not on Windows :(
> Any hint toward a solution ?

You need to call

FIND_PACKAGE(Boost)

not

FIND_PACKAGE(BOOST)

Package names are case sensitive.

-Brad


More information about the CMake mailing list