From: Andrea Bolognani Date: Thu, 27 May 2021 14:35:38 +0000 (+0200) Subject: meson: Fix sanlock detection X-Git-Tag: v7.5.0-rc1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d20685c259f26994b8a7e2ca290eb4d9acb4877a;p=thirdparty%2Flibvirt.git meson: Fix sanlock detection If the user explicitly asked for sanlock support to be enabled, then failure to find the corresponding library should result in an error. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- diff --git a/meson.build b/meson.build index c203c43299..737b684ade 100644 --- a/meson.build +++ b/meson.build @@ -1145,7 +1145,7 @@ if readline_dep.found() endif if not get_option('sanlock').disabled() - sanlock_dep = dependency('libsanlock_client', required: false) + sanlock_dep = dependency('libsanlock_client', required: get_option('sanlock')) if sanlock_dep.found() conf.set('WITH_SANLOCK', 1)