mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
meson: use current_source_dir instead of source_root
Use source_root breaks the build when used as a subproject.
This commit is contained in:
parent
1c5e035884
commit
375e1bdf2b
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ git = find_program('git', required: false)
|
||||||
if git.found()
|
if git.found()
|
||||||
all_files = run_command(
|
all_files = run_command(
|
||||||
git,
|
git,
|
||||||
['--git-dir=@0@/.git'.format(meson.source_root()),
|
['--git-dir=@0@/.git'.format(meson.current_source_dir()),
|
||||||
'ls-files',
|
'ls-files',
|
||||||
':/*.[ch]'])
|
':/*.[ch]'])
|
||||||
all_files = files(all_files.stdout().split())
|
all_files = files(all_files.stdout().split())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue