2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3680] Fix generating .pc file when dependencies are not detected through pkg-config

meson.build:1051:4: ERROR: requires argument not a string, library with pkgconfig-generated file or pkgconfig-dependency object, got <ExternalLibrary log4cplus: True>
This commit is contained in:
Andrei Pavel
2025-06-18 07:55:51 +03:00
parent 0c197ab46a
commit b95d69ba6f

View File

@@ -1042,21 +1042,21 @@ endif
#### pkg-config
additional_requires = []
foreach i : [KRB5_DEP, MYSQL_DEP, POSTGRESQL_DEP]
requires = []
foreach i : [CRYPTO_DEP, KRB5_DEP, LOG4CPLUS_DEP, MYSQL_DEP, POSTGRESQL_DEP]
if i.found() and i.type_name() == 'pkgconfig'
additional_requires += i
requires += i
endif
endforeach
if NETCONF_DEP.found()
additional_requires += ['libyang', 'sysrepo', 'libyang-cpp', 'sysrepo-cpp']
requires += ['libyang', 'sysrepo', 'libyang-cpp', 'sysrepo-cpp']
endif
pkg.generate(
description: 'High-performance, extensible DHCP server engine',
filebase: 'kea',
libraries: LIBS_BUILT_SO_FAR,
name: 'Kea',
requires: [CRYPTO_DEP, LOG4CPLUS_DEP] + additional_requires,
requires: requires,
subdirs: 'kea',
version: meson.project_version(),
)