mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-09 12:38:27 -05:00
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 <abologna@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user