only link to agg if needed

This commit is contained in:
Dane Springmeyer 2012-10-10 10:23:04 -07:00
parent a7f2eacd76
commit 858252323c

View file

@ -20,7 +20,8 @@ for cpp_test in glob.glob('*_test.cpp'):
agg_env = Environment(ENV=os.environ)
agg_env['CXX'] = env['CXX']
agg_env['CXXFLAGS'] = env['CXXFLAGS']
agg_env.AppendUnique(LIBS='agg')
if 'agg' in test_env['LIBS']:
agg_env.AppendUnique(LIBS='agg')
agg_env.Append(CPPPATH = '#deps/agg/include')
agg_env.Append(LIBPATH = '#deps/agg')
agg_env['CPPPATH'] = ['#deps/agg/include',env['BOOST_INCLUDES']]