init: quote cmake variable arguments
This commit is contained in:
parent
193fe0419a
commit
5c55820952
2
init.py
2
init.py
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user