ソースを参照

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

aozima 12 年 前
コミット
7eb4120a85
1 ファイル変更1 行追加1 行削除
  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)