Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-09 01:38:48


Hi Zbynek,
> Vladimir Prus wrote:
> >>What I want is for test2_test to run only if test1_test passes.
> >
> >Here's what works for me:
> >
> > unit-test a : a.cpp ;
> > unit-test b : b.cpp : <dependency>a ;
>
> When I say it, I thought -- great! Only to later find out that the
> following does not work:
>
> unit-test a : a.cpp a-test.cpp ;
> unit-test b : b.cpp a.cpp b-test.cpp : <dependency>a ;
>
> Beacause it says "duplicate name for target" for a.cpp. It tries to
> create one a.obj with <dependency>a and another without it. Is there a
> way around?

I cannot reproduce this problem. I think I've fixed this some time ago:

2004-01-30 11:08 vladimir_prus

* tools/builtin.jam: Make some of the features incidental, since
they have no effect on built targets.

Do you still get this problem with up-to-date CVS?

- 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