From 2393453765cc9c96de0c0c5bce98984b5ef09f32 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 17 May 2013 09:23:10 -0700 Subject: [PATCH] scons: use VariantDir to avoid 'Two environments with different actions' error when building both cpp_tests and with PLUGIN_LINKING=static --- tests/cpp_tests/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cpp_tests/build.py b/tests/cpp_tests/build.py index d47c167bc..8590b29d8 100644 --- a/tests/cpp_tests/build.py +++ b/tests/cpp_tests/build.py @@ -35,9 +35,10 @@ for cpp_test in glob.glob('*_test.cpp'): agg_env['CPPPATH'] = ['#deps/agg/include',env['BOOST_INCLUDES']] test_program = agg_env.Program(name, source=source_files, LINKFLAGS=env['CUSTOM_LDFLAGS']) else: + VariantDir('build','../../plugins/input/csv/') test_env_local = test_env.Clone() if 'csv_parse' in cpp_test: - source_files += glob.glob('../../plugins/input/csv/' + '*.cpp') + source_files += glob.glob('build' + '*.cpp') test_program = test_env_local.Program(name, source=source_files, LINKFLAGS=env['CUSTOM_LDFLAGS']) Depends(test_program, env.subst('../../src/%s' % env['MAPNIK_LIB_NAME'])) # build locally if installing