From 375e1bdf2b241bf6dfb136988562c2cdf492b55d Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 12 Mar 2018 12:15:26 +0100 Subject: [PATCH] meson: use current_source_dir instead of source_root Use source_root breaks the build when used as a subproject. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 553d2b88..c7ca038c 100644 --- a/meson.build +++ b/meson.build @@ -196,7 +196,7 @@ git = find_program('git', required: false) if git.found() all_files = run_command( git, - ['--git-dir=@0@/.git'.format(meson.source_root()), + ['--git-dir=@0@/.git'.format(meson.current_source_dir()), 'ls-files', ':/*.[ch]']) all_files = files(all_files.stdout().split())