From 785dfe58fa72af600dced7a873ee1bc0d3cf931d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Mon, 17 Apr 2023 15:53:58 +0400 Subject: [PATCH] meson: don't hard code find_program() location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use 'dirs' argument to locate the program. Signed-off-by: Marc-André Lureau Reviewed-by: Michal Privoznik --- 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