Fix a compile failure when compiling without efiboot

Fixes https://github.com/fwupd/fwupd/issues/5171
This commit is contained in:
Richard Hughes 2022-10-19 09:51:24 +01:00
parent 21dfea650b
commit 6f129a97de

View File

@ -15,7 +15,7 @@ plugin_builtin_lenovo_thinklmi = static_library('fu_plugin_lenovo_thinklmi',
)
plugin_builtins += plugin_builtin_lenovo_thinklmi
if get_option('tests')
if get_option('tests') and efiboot.found() and efivar.found()
env = environment()
env.set('G_TEST_SRCDIR', meson.current_source_dir())
env.set('G_TEST_BUILDDIR', meson.current_build_dir())