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
installation.

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
suggestions)

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

or

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

or still

     run myfile $(boost)//headers ;

HTH,

João




Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk