From 280e893747989348b991ca4ef24f9a4d6dd4f5d3 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Wed, 8 Apr 2020 18:50:41 +0100 Subject: [PATCH] tests: Generate sysroots successfully when we're a subproject Signed-off-by: Simon McVittie <smcv@collabora.com> --- tests/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 3f089b554..c64cf63be 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -64,13 +64,13 @@ install_subdir('fake-steam-runtime', install_dir : tests_dir) meson.add_postconf_script( python.path(), - join_paths(meson.source_root(), 'tests', 'generate-sysroots.py'), + join_paths(meson.current_source_dir(), 'generate-sysroots.py'), join_paths(meson.current_build_dir(), 'sysroots'), ) meson.add_install_script( python.path(), - join_paths(meson.source_root(), 'tests', 'generate-sysroots.py'), + join_paths(meson.current_source_dir(), 'generate-sysroots.py'), '--install', join_paths(tests_dir, 'sysroots'), ) -- GitLab