From 12b4cffdae29445d4bce32567c314c9c9700eb2d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 30 Jul 2023 06:32:53 +0900 Subject: meson: introduce HAVE_DMI flag The condition is used at several places. Let's introduce a simple flag for that. --- test/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/meson.build') diff --git a/test/meson.build b/test/meson.build index f41c01fa35..d57736e739 100644 --- a/test/meson.build +++ b/test/meson.build @@ -256,7 +256,7 @@ endif ############################################################ -if want_tests != 'false' and dmi_arches.contains(host_machine.cpu_family()) +if want_tests != 'false' and conf.get('HAVE_DMI') == 1 udev_dmi_memory_id_test = find_program('udev-dmi-memory-id-test.sh') if git.found() and fs.is_dir(project_source_root / '.git') -- cgit v1.2.3