build: explicitly set check arg in run_command()
authorSimon Ser <contact@emersion.fr>
Wed, 2 Feb 2022 14:04:42 +0000 (15:04 +0100)
committerSimon Ser <contact@emersion.fr>
Wed, 2 Feb 2022 14:04:42 +0000 (15:04 +0100)
Fixes the following warning:

    WARNING: You should add the boolean check kwarg to the run_command call.
             It currently defaults to false,
             but it will default to true in future releases of meson.
             See also: https://github.com/mesonbuild/meson/issues/9300

Signed-off-by: Simon Ser <contact@emersion.fr>
doc/meson.build

index f74b6b1..57c7180 100644 (file)
@@ -18,7 +18,7 @@ if vers.version_compare('< 2.26.0')
 endif
 
 manpage_xsl = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
-cmd = run_command(xsltproc, '--nonet', manpage_xsl)
+cmd = run_command(xsltproc, '--nonet', manpage_xsl, check: false)
 if cmd.returncode() != 0
        error('The style sheet for man pages providing "@0@" was not found.'.format(manpage_xsl))
 endif