init: quote cmake variable arguments

This commit is contained in:
Danny Robson 2019-02-22 12:53:59 +11:00
parent 193fe0419a
commit 5c55820952

View File

@ -62,7 +62,7 @@ if __name__ == '__main__':
vars = obj.get('vars', {})
args = obj.get('args', [])
accumulated += [f"-D{key}={val}" for key, val in vars.items()]
accumulated += [f'"-D{key}={val}"' for key, val in vars.items()]
accumulated += args
print("cmake ../../../ " + " ".join(accumulated))