From 5052302f97ee6fa83edbe74426478dd764384ead Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Sat, 24 Jul 2010 14:11:20 +0000 Subject: [PATCH] Parameter for STXXL root path --- SConstruct | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index afe2b4a2f..a680ec665 100644 --- a/SConstruct +++ b/SConstruct @@ -4,6 +4,7 @@ import os import sys AddOption('--cxx', dest='cxx', type='string', nargs=1, action='store', metavar='STRING', help='C++ Compiler') +AddOption('--stxxlroot', dest='stxxlroot', type='string', nargs=1, action='store', metavar='STRING', help='root directory of STXXL') AddOption('--verbosity', dest='verbosity', type='string', nargs=1, action='store', metavar='STRING', help='make Scons talking') AddOption('--buildconfiguration', dest='buildconfiguration', type='string', nargs=1, action='store', metavar='STRING', help='debug or release') env = Environment(COMPILER = GetOption('cxx')) @@ -13,7 +14,10 @@ if GetOption('cxx') is None: else: print 'Using user supplied C++ Compiler: ', env['CXX'] env.Replace(CXX = GetOption('cxx')) - +if GetOption('stxxlroot') is not None: + env.Append(CPPPATH = GetOption('stxxlroot')+'/include') + env.Append(LIBPATH = GetOption('stxxlroot')+'/lib') + print 'STXXLROOT = ', GetOption('stxxlroot') if sys.platform == 'win32': #SCons really wants to use Microsoft compiler print "Compiling is not yet supported on Windows"