|
Boost-Build : |
From: Larry Evans (cppljevans_at_[hidden])
Date: 2004-09-08 13:48:20
On 09/08/2004 12:48 PM, Zbynek Winkler wrote:
[snip]
> 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'm pretty much a novice, so this could be all wrong, but couldn't you
create a.o (the object file) for a.cpp first, and then put that
as the dependency (maybe <dependency>a_obj )?
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