Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-31 10:25:33


On Friday 20 May 2005 11:12, judoka1981 wrote:

> > root/Jamfile. I'm using the install rule as I'd like all libraries
> > (pre-built as well as included in project) at the same location.
>
> Just wanted to add that the install rule also tries to copy
> prebuilt.lib onto itself, even though "<install-dependencies>off" is
> specified.

"Onto itself"? That's very stange. I've tried with this Jamfile:

lib prebuilt : : <file>libprebuilt.a ;
lib my : my.cpp prebuilt ;
install dist : my ;

When built with "bjam -n link=static", it would try to copy "libprebuilt.a" to
"dist", which is more or less expected.

The explanation is that when 'my' is built as static library, it can directly
link to 'prebuilt'. So, all targets using 'my' will implicitly use 'prebuilt'.
If you had:

exe main : main.cpp my ;

that would be OK. For 'install' rule, that's less nice. I can try fixing that,
but first we need to figure out why in your case, prebuilt is copied onto
itself.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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