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

The latter doesn’t work well when building as a subproject — it
explicitly refers to the parent project root.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-07-06 10:59:45 +01:00
parent c4853f0f02
commit d085c7f585
4 changed files with 9 additions and 9 deletions

View file

@ -8,7 +8,7 @@ endif
resources = gnome.compile_resources(
'resources',
'malcontent-ui.gresource.xml',
source_dir: meson.source_root(),
source_dir: meson.current_source_dir(),
)
libmalcontent_ui_sources = [