title: How can Scons be setup to output directories above where the sconstruct is?
body: <p>I have a folder structure similar to the following:</p>
  
  <p>Project<br/>
  -----src<br/>
  --------lib<br/>
  -----bin<br/>
  --------Debug<br/>
  -----scons</p>
  
  <p>My sconstruct and sconscripts are in the "scons" folder. What I would like to do is take the build output from my lib folder and place it into the bin/debug folder. I've tried doing something like this:</p>
  
  <p><strong>Sconstruct:</strong></p>
  
  <pre><code>VariantDir('../bin/Debug','.')
  lib = SConscript('libSconscript')
  </code></pre>
  
  <p><strong>Sconscript:</strong></p>
  
  <pre><code>env.StaticLibrary('../bin/Debug/lib', Glob('../src/lib/*.cpp'))
  </code></pre>
  
  <p>But that does not seem to work. From the man page, it sounds like VariantDir() would work as I've done it, but it does not seem to. If anything, it either doesn't build at all or builds in the current directory. Anyone point out what I'm doing wrong? </p>
  
  <p>I apologize if any of this is confusing. Keeping track of all these directories in a sconscript is more difficult than one would think it would be.</p>