meson.build (gen_docs): Use `current_source_dir` instead of `source_root`.

These two are not equal when FreeType is used as a subproject, such as in
`freetype-demos`.  In that case, `source_root` points at the root project,
causing the docs build to fail.
This commit is contained in:
Jan Alexander Steffens (heftig) 2021-10-07 00:46:14 +02:00 committed by Werner Lemberg
parent 0f23ae2e80
commit 842ec5ed62
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ gen_docs = custom_target('freetype2 reference documentation',
command: [python_exe,
files('builds/meson/generate_reference_docs.py'),
'--version=' + meson.project_version(),
'--input-dir=' + meson.source_root(),
'--input-dir=' + meson.current_source_dir(),
'--output-dir=@OUTPUT@'
],
)