Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-03-23 02:12:28


David Abrahams wrote:

> > ./src/project1/a.cpp
> > I have to create ./build/src/project1/a.o. Roughly speaking ./build/
> > directory is mirror of src directory. There are couple advantages of
> > such approach:
> > 1.You can delete build results with simple 'rm -f'
> > 2.You keep your source tree clean from intermediate files.
> >
> > Is there any simple way to improve boost.jam v2 to implement this
> > approach?
>
> In BBv1 that's spelled ALL_LOCATE_TARGET, but I don't know if that's
> been implemented in v2 yet.

One can use 'build-dir' attribute, in top-level Jamfile:

project
: build-dir build
;

Note that it will still cause the generation of "gcc/debug" directories -- it
that a problem?

- Volodya

 


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