build: Avoid Meson warning for run_command() without check

Apparently the old behaviour was to silently succeed if program execution
failed. Setting check: true not only avoids a Meson deprecation warning
for not passing it, but gives us a more clear indication what goes on
when, e.g. breathe doesn't run.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-06-28 14:20:16 +01:00
parent d46b491c83
commit b510f4a9cb

View File

@ -3,9 +3,9 @@ doxygen = find_program('doxygen', required: true)
dot = find_program('dot', required: true)
breathe = find_program('breathe-apidoc', required: true)
sphinx_c = run_command(sphinx, '--version')
breathe_c = run_command(breathe, '--version')
doxygen_c = run_command(doxygen, '--version')
sphinx_c = run_command(sphinx, '--version', check: true)
breathe_c = run_command(breathe, '--version', check: true)
doxygen_c = run_command(doxygen, '--version', check: true)
sphinx_v = sphinx_c.stdout().split(' ')[1].strip()
breathe_v = breathe_c.stdout().split(' ')[2].strip()