build: fix Meson warning about lix-clang-tidy not having meson_version

This fixes Meson's "Project does not target a minimum version but uses
feature introduced in '1.1': meson.options file" warning.

Silly Meson.

I also added a note in the top-level meson.build to indicate
`meson_version` is specified in more than one place.

Change-Id: I2c04278bb46a562a1c96cd2e5e4d9ce59ce8e125
This commit is contained in:
Qyriad
2025-06-09 14:10:44 +02:00
parent b70bbbe680
commit d8b1bb5862
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -46,6 +46,7 @@
# in the build directory.
project('lix', 'cpp', 'rust',
# NOTE: when bumping this, remember to also bump meson_version in subprojects.
meson_version : '>=1.5.0',
version : run_command('bash', '-c', 'echo -n $(jq -r .version < ./version.json)$VERSION_SUFFIX', check : true).stdout().strip(),
default_options : [
+1
View File
@@ -1,4 +1,5 @@
project('lix-clang-tidy', ['cpp', 'c'],
meson_version : '>=1.5.0',
version : '0.1',
default_options : ['warning_level=3', 'cpp_std=c++20']
)