Skip to content

Fix meson deprecation warning

Morten Volden requested to merge work/volden/meson-deprecation into master

Early versions of meson would allow an implicit invocation of setup (e.g. 'meson build' is interpreted as 'meson setup build'). With newer meson versions this is deprecated and triggers a warning from meson. We now use the full command.

mvo@volden-devel:~/projects/testMesonSetup$ meson build
The Meson build system
Version: 1.1.1
Source dir: /home/mvo/projects/testMesonSetup
Build dir: /home/mvo/projects/testMesonSetup/build
Build type: native build
Project name: testmesonsetup
Project version: 1.0.0
C++ compiler for the host machine: c++ (gcc 11.3.0 "c++ (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Build targets in project: 1

Found ninja-1.10.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
Edited by Morten Volden

Merge request reports