Boost logo

Boost-Build :

Subject: Re: [Boost-build] how to get a different output location for lib and obj files?
From: Matthew Chambers (matthew.chambers_at_[hidden])
Date: 2009-09-21 10:16:20


Fadi Beyrouti wrote:
> Brian Ravnsgaard Riis <brian <at> ravnsgaard.net> writes:
>
>
>> Not directly, I think. However:
>>
>> lib a ... ;
>> lib b ... ;
>> lib c ... ;
>>
>> install stage
>> : a b c
>> : <location>./stage
>> ;
>>
>> Then "bjam stage" will copy your libraries to ./stage from your project
>> root (and even build them first if needed).
>>
>> HTH
>> /Brian
>>
>>
>>
>
> I guess that can do the trick :)
It is possible to do directly, but you must specify an obj target for
each source file:
obj a : a.cpp : <location>obj-location ;

The install rule will copy them to a different location, but not build
them there to begin with. To build them there, you must use the
<location> feature. But moving the libs instead via install is probably
easier.

-Matt


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