[libvirt PATCH v2 3/6] meson: don't hard code find_program() location
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Mon Apr 17 11:53:58 UTC 2023
From: Marc-André Lureau <marcandre.lureau at redhat.com>
Use 'dirs' argument to locate the program.
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
src/util/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/meson.build b/src/util/meson.build
index 2fe6f7699e..f055079d0b 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -138,7 +138,7 @@ keyname_list = [
'win32',
]
-keymap_gen_prog = find_program('@0@/src/keycodemapdb/tools/keymap-gen'.format(meson.project_source_root()))
+keymap_gen_prog = find_program('keymap-gen', dirs: [meson.project_source_root() / 'src' / 'keycodemapdb' / 'tools' ])
keymap_src_file = '@0@/src/keycodemapdb/data/keymaps.csv'.format(meson.project_source_root())
foreach name : keycode_list
--
2.40.0
More information about the libvir-list
mailing list