Skip to content

Commit 2c43217

Browse files
taliseinkjellahl
authored andcommitted
meson: set LIBXML2_LIB_NO_PKGCONFIG for cmake dep
1 parent c2cf1d7 commit 2c43217

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,13 @@ libxml2_lib_pkgconfig = ''
118118

119119
# Put libxml-2.0 in the 'Requires:' section in the generated pkg-config file if
120120
# we found it by pkg-config
121-
if xml2_dep.type_name() == 'pkgconfig'
121+
if xml2_dep.type_name() == 'pkgconfig' or xml2_dep.type_name() == 'internal'
122122
xmlxx_requires += ['libxml-2.0', xml2_req]
123+
else
124+
libxml2_lib_pkgconfig = xml2_dep.get_variable(
125+
cmake: 'LIBXML2_LIBRARIES',
126+
default_value: 'LibXml2.lib',
127+
)
123128
endif
124129

125130
xmlxx_requires = ' '.join(xmlxx_requires)

0 commit comments

Comments
 (0)