aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-09-08 12:10:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-12-31 09:11:28 +0100
commite7c22ff87aa3a71e6cad1e88c2651dde8c7d504b (patch)
treed3a7aa26a8c838b3f69bee6e1fc82dae8fb99ee9 /meson.build
parent9cd76c9111004f3e5d375f8b60d078eb4f742b0d (diff)
downloadqemu-e7c22ff87aa3a71e6cad1e88c2651dde8c7d504b.zip
qemu-e7c22ff87aa3a71e6cad1e88c2651dde8c7d504b.tar.gz
qemu-e7c22ff87aa3a71e6cad1e88c2651dde8c7d504b.tar.bz2
meson: always probe u2f and canokey if the option is enabled
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 2133505..7344e36 100644
--- a/meson.build
+++ b/meson.build
@@ -1828,12 +1828,12 @@ if not get_option('smartcard').auto() or have_system
version: '>=2.5.1', method: 'pkg-config')
endif
u2f = not_found
-if have_system
+if not get_option('u2f').auto() or have_system
u2f = dependency('u2f-emu', required: get_option('u2f'),
method: 'pkg-config')
endif
canokey = not_found
-if have_system
+if not get_option('canokey').auto() or have_system
canokey = dependency('canokey-qemu', required: get_option('canokey'),
method: 'pkg-config')
endif