Boost logo

Boost-Build :

From: João Abecasis (jpabecasis_at_[hidden])
Date: 2006-03-30 12:42:19

John Maddock wrote:
> In any case it completely misses the point: I know where Boost is on my
> machine, I don't know where it is on someone elses machine (who may be
> running my examples). bjam on the other hand *does* know where boost is,
> because it's located the build system. It's that information I want to pull
> out.

Well, theoretically at least, the build-system could be located outside
the boost hierarchy and know nothing about it. So I usually have my
jamfiles check for the BOOST_ROOT variable first and then, if that
fails, I try find boost from BOOST_BUILD_PATH assuming a default boost

I believe, the attached file, which I am currently using in my local
Phoenix-V2 copy, has all the logic you need. Once you have the
boost-root variable determined, you may use it as (incorporating other's

     project yours :
         requirements <include>$(boost-root) ;


     project yours :
         requirements <use>$(boost-root)//headers ;

or still

     run myfile $(boost)//headers ;



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at