Skip to content

Commit

Permalink
build: Check whether run_command() succeeded
Browse files Browse the repository at this point in the history
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: mesonbuild/meson#9300
  • Loading branch information
hadess authored and martinpitt committed Jan 18, 2022
1 parent 00585c9 commit efb326b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit efb326b

Please sign in to comment.