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.
1100-sdf-precision-improvement
Jan Alexander Steffens (heftig) 3 years ago committed by Werner Lemberg
parent 0f23ae2e80
commit 842ec5ed62
  1. 2
      meson.build

@ -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@'
],
)

Loading…
Cancel
Save