Making FindBoost prefer Boost_ROOT

Alexander Neundorf neundorf at
Wed Mar 26 22:41:11 GMT 2008

On Wednesday 26 March 2008, Matthew Woehlke wrote:
> In order to get my Boost_ROOT honored rather than the system boost in
> /usr/include (which is too old), I had to make the following changes to
> FindBoost.cmake (this is from kdevplatform, but I've had to copy the
> module to pimlibs and now kdesdk also, due to the module from cmake
> 2.4.6 being similarly inadequate). Should I commit this?

With cmake 2.6 you can set the env. variable CMAKE_PREFIX_PATH, e.g. 
to /my/boost/install/dir, and then cmake will search this first (and append 
include/, lib/ and bin/ accordingly).
Would that help in your case ?


More information about the kde-core-devel mailing list