[jamming] .obj output dir
Paul Forgey
paulf at metainfo.com
Fri Feb 6 16:34:14 PST 2004
On Feb 6, 2004, at 8:10 PM, Marco Pappalardo wrote:
> 've tried LOCATE_TARGET and ALL_LOCATE_TARGET, and although
> ALL_LOCATE_TARGET does relocate the exe, the obj are still generated
> in the same dir as the sources. My question is what is the standard
> way to tell Jam to output the .obj to a certain dir ? (if there is
> any)
LOCATE_TARGET should do it. How are you setting it? For example,
LOCATE_TARGET on whatever$(SUFEXE) = won't affect the intermediate
files which built the exe. If you have multiple subprojects, I posted
a simple $(SUBDIRRULES) a while ago you can put in your Jamrules which
gives you msdev-like behavior. It sort of breaks the spirit of Jam
(take any Jamfile project and send output anywhere without modifying
the Jamfile), but it's probably what you want.
> Or should I just modify the c++ rule so that it /Fo's to a specific
> dir ?
No. The stock rules already did that for you.
More information about the jamming
mailing list