mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
meson: fix usage as a subproject
include directories must be passed to that projects can use headers. Also add override_dependencies to make sure that it's used when available as a subproject. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
a7e26707be
commit
0160127fda
@ -699,7 +699,10 @@ xml_lib = library(
|
|||||||
version: meson.project_version(),
|
version: meson.project_version(),
|
||||||
)
|
)
|
||||||
|
|
||||||
xml_dep = declare_dependency(link_with: xml_lib)
|
dep_inc = include_directories('include')
|
||||||
|
xml_dep = declare_dependency(include_directories: dep_inc, link_with: xml_lib)
|
||||||
|
|
||||||
|
meson.override_dependency('libxml-2.0', xml_dep)
|
||||||
|
|
||||||
## xmllint tool
|
## xmllint tool
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user