From d8b1bb58622ee7af6cfa260d32d84859b3dc2ea2 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Mon, 9 Jun 2025 14:10:44 +0200 Subject: [PATCH] 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 --- meson.build | 1 + subprojects/lix-clang-tidy/meson.build | 1 + 2 files changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 8940ca651..f0443bbd1 100644 --- a/meson.build +++ b/meson.build @@ -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 : [ diff --git a/subprojects/lix-clang-tidy/meson.build b/subprojects/lix-clang-tidy/meson.build index bb09448d5..70dabe6da 100644 --- a/subprojects/lix-clang-tidy/meson.build +++ b/subprojects/lix-clang-tidy/meson.build @@ -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'] )