title: How to make scons to write the target of a build in the build directory?
body: <p>I am trying to build a static library with Scons.
  All I want to do is to build the object files and the library file in a build directory called "build-release". </p>
  
  <p>Using VariantDir I can make scons build the object files in the build-release directory, but the libStringUtilities.a is still being wrote in the current directory, Why?</p>
  
  <p>please, Any help will be wellcome.</p>
  
  <p>My folder layout is the following.</p>
  
  <pre><code>MyLib/
    \--- project/
            \---- SConstruct
            \---- SConscript
    \--- src ( source files )
    \--- build-release ( build directory)
  </code></pre>
  
  <p>Here are my Sconscript ...</p>
  
  <pre><code>  Import('env')
  
    source_files = Glob('../build-release/*.cc')
    object_files = env.Object(source_files)
    env.StaticLibrary('StringUtilities',object_files)
  </code></pre>
  
  <p>...and Sconstruct files.</p>
  
  <pre><code>  import os
  
    env = Environment ( ENV = os.environ )
  
    Export('env')
  
    VariantDir('../build-release','../src',duplicate= False)
    SConscript('SConscript')
  </code></pre>