From: Paolo Bonzini Date: Thu, 24 Mar 2022 10:53:04 +0000 (+0100) Subject: meson: do not look for libparted if not requested X-Git-Tag: v8.2.0-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5df14f81807f9ddbe6c77b46ab969dfbb5426937;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Michal Privoznik Signed-off-by: Michal Privoznik --- diff --git a/meson.build b/meson.build index eb13c7efa4..27c21d1d67 100644 --- a/meson.build +++ b/meson.build @@ -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()