aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-12 12:15:26 +0100
committeremersion <contact@emersion.fr>2018-03-12 12:15:26 +0100
commit375e1bdf2b241bf6dfb136988562c2cdf492b55d (patch)
treedf19148d68a06f3ad5086f949213473dd2ddb9e3
parent1c5e035884018b2f78ad4f8ee44177c45ddf2892 (diff)
meson: use current_source_dir instead of source_root
Use source_root breaks the build when used as a subproject.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
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())