build: Fix pkg-config generation on local build
When building with internal dependencies (subprojects) meson fails to
configure the build with the following message:
"""
meson.build:84:20: ERROR: requires argument not a string, library with
pkgconfig-generated file or pkgconfig-dependency object, got
<InternalDependency dep140431893321616: True>
"""
Use libraries instead of requires when calling pkgconfig.generate() to
make the configuration succeed.
Change-Id: I48e0c6bd625af8d10fecf6235b9d034453abf9d6
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/meson.build b/meson.build
index 3229235..4203295 100644
--- a/meson.build
+++ b/meson.build
@@ -85,7 +85,7 @@
libsnmp_lib,
name: meson.project_name(),
version: meson.project_version(),
- requires: sdbusplus_dep,
+ libraries: sdbusplus_dep,
description: 'Phosphor snmp utilities',
)