cmake: add_custom_command fix empty and quoted parameters
This commit is contained in:
parent
7e839fc4a9
commit
f2114fa167
|
@ -28,6 +28,7 @@ for i in args.commands:
|
|||
commands += [[]]
|
||||
continue
|
||||
|
||||
i = i.replace('"', '') # Remove lefover quotes
|
||||
commands[-1] += [i]
|
||||
|
||||
# Execute
|
||||
|
|
|
@ -461,6 +461,8 @@ class ConverterCustomTarget:
|
|||
cmd = []
|
||||
|
||||
for j in i:
|
||||
if not j:
|
||||
continue
|
||||
target_key = _target_key(j)
|
||||
if target_key in output_target_map:
|
||||
cmd += [output_target_map[target_key]]
|
||||
|
|
Loading…
Reference in New Issue