[Scons-users] Out of project tree builds

William Deegan bill at baddogconsulting.com
Sat Oct 27 16:17:23 EDT 2012


Russel,

On Oct 27, 2012, at 12:37 PM, Russel Winder <russel at winder.org.uk> wrote:


> Hi,

>

> A D user tried SCons, got frustrated and announced giving up on SCons.

> One of the problems this person had was not being able to do "out of

> project tree builds". I tried an experiment and it is clear that SCons

> refuses to have a variant directory in a directory only reachable

> from .. of the directory in which the SConstruct file resides.

>

> Although I have never previously tried this, it is clearly a sensible

> thing to want to do. So how Can this be achieved in SCons without

> relying on symbolic links in the project tree?


By default SCons builds from the current directory down.
I think adding a Default('../whateverdir') and/or env.Default(..) might do the trick.

-Bill


More information about the Scons-users mailing list