Boost logo

Boost-Build :

Subject: Re: [Boost-build] Installing directories and sub dirs in Jamroot
From: Juraj Ivančić (juraj.ivancic_at_[hidden])
Date: 2009-10-14 17:18:47


Clovis Olson wrote:

> I am receiving duplicate name:
>
> /usr/share/boost-build/build/virtual-target.jam:1032: in
> virtual-target.register-actual-name from module virtual-target
> error: Duplicate name of actual target:
> <pdist/release/tests/unit1>testresult.txt
> error: previous virtual target { common%common.copy-testresult.txt. {
> tests/unit1/100/testresult.txt. } }
> error: created from ./testcopy
> error: another virtual target { common%common.copy-testresult.txt. {
> tests/unit1/200/testresult.txt. } }
> error: created from ./testcopy
> error: added properties: none
> error: removed properties: none
>
> Is there a way to get around this?

Please don't top-post. This error means that there are two targets which
produce the same file. This occurs because install rule by default
copies files without preserving directory hierarchy. To preserve
hierarchy you must specify <install-source-root>.

See

http://www.boost.org/doc/tools/build/doc/html/bbv2/tasks/installing.html
Section "Preserving Directory Hierarchy".

E.g.

install dataToCopy
:
     [ path.glob-tree /path/aaa : *.* ]
:
     <location>/destination/path
     <install-source-root>/path/aaa
;


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