meson: use project_build_root

As documented in /meson.build where the variable is defined,
meson.build_root() doesn't work as expected with project nesting. I have
no idea why anyone would want to embed systemd in another meson project,
but let's use the variable if we have it.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-07-27 16:19:35 +02:00
parent 9247df5a88
commit 81875efe20

View file

@ -15,7 +15,7 @@ path = run_command(sh, '-c', 'echo "$PATH"').stdout().strip()
test_env = environment()
test_env.set('SYSTEMD_KBD_MODEL_MAP', kbd_model_map)
test_env.set('SYSTEMD_LANGUAGE_FALLBACK_MAP', language_fallback_map)
test_env.set('PATH', '@0@:@1@'.format(meson.build_root(), path))
test_env.set('PATH', project_build_root + ':' + path)
############################################################