Out of source build with jam?

64 Views Asked by At

Is it possible to do an out-of-source build using Jam? If yes, how?

(I've been sifting through the manual, but it makes no mention of this as far as I can see.)

Note: I am using the "standard" Jam v2.5.

1

There are 1 best solutions below

2
user686249 On BEST ANSWER

This might depend on the version of jam you are using. Speaking for the standard jam (i.e. not the Boost or FreeType forks): There is no official way, but you might get away with:

jam -sJAMFILE=path/to/Jamfile ...

For more complex build systems that also have a configure stage, I'd recommend to simply generate a minimal Jamfile in those output directory/directories from which you intend to invoke jam.