Explorar el Código

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

aozima hace 12 años
padre
commit
7eb4120a85
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/codeblocks.py

+ 1 - 1
tools/codeblocks.py

@@ -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)