mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 04:15:49 +00:00
meson: attr_dep switch to dependency()
The pkg-config file to libattr was introduced in 2.4.48 release. Now that every supported distro ships at least this version, we can switch meson detection to dependency(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
63ca3e656c
commit
dffeef89ef
@ -898,8 +898,7 @@ if not get_option('apparmor_profiles').disabled()
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# FIXME rewrite to use dependency() once we can use 2.4.48
|
attr_dep = dependency('libattr', required: get_option('attr'))
|
||||||
attr_dep = cc.find_library('attr', required: get_option('attr'))
|
|
||||||
if attr_dep.found()
|
if attr_dep.found()
|
||||||
conf.set('WITH_LIBATTR', 1)
|
conf.set('WITH_LIBATTR', 1)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user