mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
parent
6f25a5ac8a
commit
d20685c259
@ -1145,7 +1145,7 @@ if readline_dep.found()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if not get_option('sanlock').disabled()
|
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()
|
if sanlock_dep.found()
|
||||||
conf.set('WITH_SANLOCK', 1)
|
conf.set('WITH_SANLOCK', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user