Rather than having to use run_command to shell out and read the VERSION file for the DPDK version, we can use the support added directly to meson in version 0.57.
Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> --- meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 69888834b4..fe9040369a 100644 --- a/meson.build +++ b/meson.build @@ -2,10 +2,7 @@ # Copyright(c) 2017-2019 Intel Corporation project('DPDK', 'c', - # Get version number from file. - # Fallback to "more" for Windows compatibility. - version: run_command(find_program('cat', 'more'), - files('VERSION'), check: true).stdout().strip(), + version: files('VERSION'), license: 'BSD', default_options: [ 'buildtype=release', -- 2.43.0