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:
parent
0f23ae2e80
commit
842ec5ed62
|
@ -391,7 +391,7 @@ gen_docs = custom_target('freetype2 reference documentation',
|
||||||
command: [python_exe,
|
command: [python_exe,
|
||||||
files('builds/meson/generate_reference_docs.py'),
|
files('builds/meson/generate_reference_docs.py'),
|
||||||
'--version=' + meson.project_version(),
|
'--version=' + meson.project_version(),
|
||||||
'--input-dir=' + meson.source_root(),
|
'--input-dir=' + meson.current_source_dir(),
|
||||||
'--output-dir=@OUTPUT@'
|
'--output-dir=@OUTPUT@'
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue