[Scons-users] Out of tree build getting "Source directory cannot be under variant directory" error

ethan09 ethanwwei at gmail.com
Thu Aug 23 17:01:59 EDT 2012


On Thu, Aug 23, 2012 at 1:48 PM, Evan Driscoll <driscoll at cs.wisc.edu> wrote:

>

> Hmm, okay. I'm surprised by that, but whatever. I have one other

> suggestion of something to try, though I don't know if it'll work:

>

> Try changing

> VariantDir(vdir, 'src')

> SConscript(vdie + '/SConscript')

> to

> SConscript(vdie + '/SConscript', variant_dir = vdir)

>

> I've tried using the VariantDir call directly and have had trouble in

> the past with it and gave up, though I don't remember what sort of

> trouble. Perhaps you'll have more luck with that?


No luck :(

[a typo correction: in my original post, "vdir" was typed "vdie", I've
corrected the typo in various versions tried so far, and the problem
remains the same.]

Thanks,
-EW


>

> Or it may be that you're correct... I'm not sure how prepared SCons is

> to do out-of-tree builds.

>

> Evan

>



More information about the Scons-users mailing list