cmake: add_custom_command fix empty and quoted parameters

pull/6213/head
Daniel Mensinger 5 years ago
parent 7e839fc4a9
commit f2114fa167
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 1
      mesonbuild/cmake/data/run_ctgt.py
  2. 2
      mesonbuild/cmake/interpreter.py

@ -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…
Cancel
Save