]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: do not look for libparted if not requested
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Mar 2022 10:53:04 +0000 (11:53 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 25 Mar 2022 14:31:56 +0000 (15:31 +0100)
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>
meson.build

index eb13c7efa4c16c5b2d532212e9e939da72f6fed0..27c21d1d6745f3a0dee55e57f33588d1da423393 100644 (file)
@@ -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()