fixed bug: scons: don't throw excptions when CPPDEFINES is not defined.

This commit is contained in:
aozima 2013-06-16 23:05:10 +08:00
parent 4d70222c71
commit 7eb4120a85
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def CBProject(target, script, program):
Add = SubElement(elem, 'Add')
Add.set('directory', path)
for macro in building.Env['CPPDEFINES']:
for macro in building.Env.get('CPPDEFINES', []):
Add = SubElement(elem, 'Add')
Add.set('option', "-D"+macro)