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,6 +47,9 @@ incs = [
defs = ['GLEW_STATIC'] defs = ['GLEW_STATIC']
if env['WITH_BF_PYTHON']: if env['WITH_BF_PYTHON']:
if type(env['BF_PYTHON_INC']) == str:
incs.append(env['BF_PYTHON_INC'].split(' '))
else:
incs.append(env['BF_PYTHON_INC']) incs.append(env['BF_PYTHON_INC'])
defs.append('WITH_PYTHON') defs.append('WITH_PYTHON')