build: Pass libraries to pkgconfig.generate as a positional argument

This allows Meson to associate the pkg-config module with the "main"
library that it represents, in an unambiguous way.

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie
2020-09-16 10:08:27 +01:00
parent 175efaff30
commit 68c50ba869
3 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ libsysprof_dep = declare_dependency(
)
pkgconfig.generate(
libraries: [libsysprof],
libsysprof,
subdirs: [ sysprof_header_subdir ],
version: meson.project_version(),
name: 'sysprof-@0@'.format(libsysprof_api_version),