build: Replace source_root()

Use project_source_root(), which replaces the deprecated source_root().
This commit is contained in:
Emmanuele Bassi 2021-12-24 15:48:06 +00:00
parent de42b5bfae
commit bd772610b1

View File

@ -3,7 +3,7 @@ demo_profile = get_option('profile')
demo_conf_h = declare_dependency(
sources: custom_target('demo-header',
command: [gen_demo_header, meson.source_root(), demo_profile],
command: [gen_demo_header, meson.project_source_root(), demo_profile],
capture: true,
output: 'demo_conf.h',
build_by_default: true,