Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-12-09 17:21:07


Toon Knapen wrote:
> David Abrahams wrote:
>> Where is the analogous setting for bbv2?
>>
>
>
> You can set this using the project rule
>
> project my-project
> :
> : build-dir path-to-my-derived-objects
> ;
>
>
> or if you want to use an env.var.
>
>
> BUILDDIR = [ modules.peek : ALL_LOCATE_TARGET ] ;
> project my-project : : build-dir $(BUILDDIR) ;

Well, thanks, but IMO this is bad. It should be an officially-supported
command-line option for bjam. Projects shouldn't be expected to
cooperate in choosing environment variables, and any project should be
buildable from read-only media, including a project with dependencies on
other projects also on read-only media.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
 

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