diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index cfdae4f20..8de88c92d 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -526,8 +526,7 @@ class PkgConfigModule(ExtensionModule): for lib in deps.pub_libs: if not isinstance(lib, str) and not hasattr(lib, 'generated_pc'): lib.generated_pc = filebase - location = types.SimpleNamespace(subdir=state.subdir, - lineno=state.current_lineno) + location = state.current_node lib.generated_pc_warn = [name, location] return ModuleReturnValue(res, [res])