build: Replace source_root()
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 24 Dec 2021 15:48:06 +0000 (15:48 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 24 Dec 2021 15:48:06 +0000 (15:48 +0000)
Use project_source_root(), which replaces the deprecated source_root().

demos/meson.build

index 550f90b0de9928cb73816359a70ff648224378d0..91eb3c465c69d30d5bdfc05f8c10e56169e0606c 100644 (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,