Check if the variable is a string and split nicely, so compile command stays intact with proper include options.

This commit is contained in:
Nathan Letwory
2013-02-25 12:03:55 +00:00
parent 282e5caecf
commit 04c1a7f1bc

View File

@@ -47,7 +47,10 @@ incs = [
defs = ['GLEW_STATIC']
if env['WITH_BF_PYTHON']:
incs.append(env['BF_PYTHON_INC'])
if type(env['BF_PYTHON_INC']) == str:
incs.append(env['BF_PYTHON_INC'].split(' '))
else:
incs.append(env['BF_PYTHON_INC'])
defs.append('WITH_PYTHON')
if env['WITH_BF_CXX_GUARDEDALLOC']: