[Tools] fix CPPDEFINES issue in vs
This commit is contained in:
parent
370250afbe
commit
475a3b8b85
|
@ -108,6 +108,13 @@ def VSProject(target, script, program):
|
|||
|
||||
# write cppdefinitons flags
|
||||
if building.Env.has_key('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)
|
||||
# write link flags
|
||||
|
|
Loading…
Reference in New Issue