Boost logo

Boost-Build :

Subject: Re: [Boost-build] Duplicate name of actual target, sort of...
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-02-13 05:32:42


On Wednesday 11 February 2009 10:23:18 Simply Seven wrote:
>
> Hi,
>
> I have a rule that looks like so:
>
> rule building ( properties * )
> {
> local result ;
>
> # nat-pmp
> result += <source>../nat-pmp/src/client.cpp ;
>
> # upnp
> result += <source>../upnp/src/client.cpp ;
> result += <source>../upnp/src/commands.cpp ;
> result += <source>../upnp/src/description.cpp ;
> result += <source>../upnp/src/device.cpp ;
> result += <source>../upnp/src/error_code.cpp ;
> result += <source>../upnp/src/soap.cpp ;
> result += <source>../upnp/src/xml.cpp ;
>
> return $(result) ;
> }
>
> I am having the duplicate problem because the two "client.cpp" files that are in separate directories.
>
> I assume I need to change the obj files of these duplicate cases but I have no idea how.

This is documented at http://www.boost.org/boost-build2/doc/html/bbv2/faq/s02.html
Alternatively, you can try SVN HEAD version of Boost.Build which might automatically
put object files in different directories.

- 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