Fix using blueprint-compiler as a meson subproject

This commit is contained in:
James Westman 2022-06-08 23:46:13 -05:00
parent d319cb11c1
commit 2c58a0f51c
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -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')