From d2c5b48b2977304ff9875edc54f286100ce021a9 Mon Sep 17 00:00:00 2001 From: James Westman Date: Wed, 8 Jun 2022 23:46:13 -0500 Subject: [PATCH] Fix using blueprint-compiler as a meson subproject --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index bca5f23..6a9a1dd 100644 --- a/meson.build +++ b/meson.build @@ -26,7 +26,9 @@ blueprint_compiler = configure_file( install_dir: get_option('bindir'), ) -meson.override_find_program('blueprint-compiler', blueprint_compiler) +# Don't use the output configure_file here--that file is in the build directory +# and won't be able to find the python modules in the source directory. +meson.override_find_program('blueprint-compiler', find_program('blueprint-compiler.py')) if not meson.is_subproject() install_subdir('blueprintcompiler', install_dir: datadir / 'blueprint-compiler')