meson: introduce HAVE_DMI flag

The condition is used at several places. Let's introduce a simple flag
for that.
This commit is contained in:
Yu Watanabe
2023-08-03 20:37:16 +09:00
parent ff2dedcffd
commit 12b4cffdae
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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')