Advertisement

Target directory for SCons

Started by April 17, 2007 09:03 AM
0 comments, last by Kairhos 17 years, 7 months ago
How do I tell SCons to put the binary in another directory? This is what I currently do:

env = Environment(CC = 'g++', CCFLAGS = '-O2 -march=i686 -Wall')

env.Program('binary_i686',['../../src/main.cpp'])



And this is what I want to do:

env = Environment(CC = 'g++', CCFLAGS = '-O2 -march=i686 -Wall')

env.Program('../../binary_i686',['../../src/main.cpp'])



But then it just returns:
Quote: scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: `.' is up to date. scons: done building targets.
Any ideas? [Edited by - BBB on April 18, 2007 3:42:27 PM]
Have a look at:

Separating Source and Build Directories

and

The BuildDir Function

This topic is closed to new replies.

Advertisement