From d20685c259f26994b8a7e2ca290eb4d9acb4877a Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Thu, 27 May 2021 16:35:38 +0200 Subject: [PATCH] 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 --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)