diff options
-rw-r--r-- | mesonbuild/modules/gnome.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index b8092b2..0c4b67a 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -332,7 +332,10 @@ class GnomeModule(ExtensionModule): source.held_object.get_subdir())]) # This should be any dependency other than an internal one. elif isinstance(dep, Dependency): - cflags.update(dep.get_compile_args()) + if isinstance(dep, PkgConfigDependency) and use_gir_args: + cflags.update(["--pkg=%s" % dep.get_name()]) + else: + cflags.update(dep.get_compile_args()) for lib in dep.get_link_args(): if (os.path.isabs(lib) and # For PkgConfigDependency only: |