Boost logo

Boost-Build :

Subject: Re: [Boost-build] How does one place object files into a different directory
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-10-17 15:54:51


AMDG

On 10/17/2013 07:42 AM, Michael Price wrote:
> I am currently specifying the <location> feature and noticing that the
> object files also get placed there in a tree that mirrors the source file
> locations. Is there a way to make the object files be rooted in a
> different directory than the ultimate output of the 'exe' and 'lib' rules
> (I am not explicitly using the 'obj' rule)
>

Instead of setting <location> on the exe rule, you
can use install to copy only the files that you
want.

exe a.exe : a.cpp ;
install a : a.exe : <location>... ;

In Christ,
Steven Watanabe


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