Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-12-09 04:50:26


Hi Pedro,

> > Going back to Pedro's example:
> >
> > lib a : A1/A.cpp A2/A.cpp : <link>static ;
> > stage stage : a ;
> >
> > I am not really sure where to compile those different A.cpp, so that they
> > don't conflict. One solution, from
> >
> > http://article.gmane.org/gmane.comp.lib.boost.build/1813
> >
> > would be to create auxilliary obj targets:
> >
> >
> > obj a1 : A1/A.cpp ;
> > obj a2 : A2/A.cpp ;
>
> I had tried this one too but it's not very intuitive, at least for the
> "uninitiated".

Any chance that proper docs will make it less confusing?

> > and then use them. Whether it can be automated, how it can be automated
>
> and
>
> > whether it's worth the effort are the questions.
>
> What if the name of the obj file were changed in order to mangle the whole
> path, e.g. A1___A.obj?

Yep, might work.

> (I have to say that I was never too fond of the idea
> of simplifying the target paths...)

Can you clarify what's "simplifying target paths" ;-) I this all we doing is
stripping directory from source name and then placing the generated target
into "bin" directory.

- 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