[Tools] fix CPPDEFINES issue in vs
This commit is contained in:
parent
370250afbe
commit
475a3b8b85
|
@ -108,7 +108,14 @@ def VSProject(target, script, program):
|
||||||
|
|
||||||
# write cppdefinitons flags
|
# write cppdefinitons flags
|
||||||
if building.Env.has_key('CPPDEFINES'):
|
if building.Env.has_key('CPPDEFINES'):
|
||||||
definitions = ';'.join(building.Env['CPPDEFINES'])
|
CPPDEFINES = building.Env['CPPDEFINES']
|
||||||
|
definitions = []
|
||||||
|
if type(CPPDEFINES[0]) == type(()):
|
||||||
|
for item in CPPDEFINES:
|
||||||
|
definitions += [i for i in item]
|
||||||
|
definitions = ';'.join(definitions)
|
||||||
|
else:
|
||||||
|
definitions = ';'.join(building.Env['CPPDEFINES'])
|
||||||
elem.set('PreprocessorDefinitions', definitions)
|
elem.set('PreprocessorDefinitions', definitions)
|
||||||
# write link flags
|
# write link flags
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue