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 <abolo...@redhat.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 35dbec6522..328d4d1c5f 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)
-- 
2.31.1

Reply via email to