mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: do not look for libparted if not requested
libparted_dep is not used if -Dstorage_disk=disabled. Do not bother looking for this library if the disk storage backend was not requested. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
3124cd618d
commit
5df14f8180
@ -1013,7 +1013,7 @@ else
|
||||
endif
|
||||
|
||||
libparted_version = '1.8.0'
|
||||
libparted_dep = dependency('libparted', version: '>=' + libparted_version, required: false)
|
||||
libparted_dep = dependency('libparted', version: '>=' + libparted_version, required: get_option('storage_disk'))
|
||||
|
||||
libpcap_version = '1.5.0'
|
||||
if not get_option('libpcap').disabled()
|
||||
|
Loading…
Reference in New Issue
Block a user