From efb326bbe949a4f196e7660efefc4474b7510011 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 18 Jan 2022 11:22:16 +0100 Subject: [PATCH] build: Check whether run_command() succeeded As per: 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 --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 12888e27..2ed90270 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('umockdev', 'c', 'vala', - version: run_command('sed', '-rn', '1 { s/^.*\[([0-9.]+)\].*/\\1/; p }', 'NEWS').stdout().strip(), + version: run_command('sed', '-rn', '1 { s/^.*\[([0-9.]+)\].*/\\1/; p }', 'NEWS', check: true).stdout().strip(), license: 'LGPLv2.1+') srcdir = meson.current_source_dir() / 'src'