]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix logic for enabling libssh/libssh2 checks
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 23 Jun 2021 11:31:53 +0000 (12:31 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 23 Jun 2021 17:43:22 +0000 (18:43 +0100)
When 'driver_remote' is 'auto', the 'enabled()' method does not
evaluate to true, causing the libssh/libssh2 checks to be skipped.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build

index 9caae5521b4e4df9e83065236d479f7f001266c5..1fab424fde1101a659ef0c01b51397ca82709e2e 100644 (file)
@@ -1005,7 +1005,7 @@ else
 endif
 
 libssh_version = '0.7'
-if get_option('driver_remote').enabled()
+if not get_option('driver_remote').disabled()
   libssh_dep = dependency('libssh', version: '>=' + libssh_version, required: get_option('libssh'))
   if libssh_dep.found()
     conf.set('WITH_LIBSSH', 1)
@@ -1028,7 +1028,7 @@ else
 endif
 
 libssh2_version = '1.3'
-if get_option('driver_remote').enabled()
+if not get_option('driver_remote').disabled()
   libssh2_dep = dependency('libssh2', version: '>=' + libssh2_version, required: get_option('libssh2'))
   if libssh2_dep.found()
     conf.set('WITH_SSH2', 1)