Use current_source_dir instead of source_root

This is so that log messages are printed properly when wlroots is build
as a subproject.
This commit is contained in:
Scott Anderson 2018-08-22 21:20:26 +12:00
parent b1ed61b649
commit 653ea512c2

View file

@ -18,7 +18,7 @@ so_version = ['0', '0', '0']
add_project_arguments('-Wno-unused-parameter', language: 'c')
add_project_arguments(
'-DWLR_SRC_DIR="@0@"'.format(meson.source_root()),
'-DWLR_SRC_DIR="@0@"'.format(meson.current_source_dir()),
language: 'c',
)
add_project_arguments(