trivial: don't require libgusb when building as a subproject on Windows

This commit is contained in:
Mario Limonciello 2022-05-24 17:05:15 -05:00 committed by Richard Hughes
parent 2319f19306
commit ef282b699f

View File

@ -510,7 +510,7 @@ conf.set_quoted('FWUPD_PLUGINDIR', plugin_dir)
endif
# sanity check, otherwise there is not point building
if host_machine.system() == 'windows' and not gusb.found()
if build_standalone and host_machine.system() == 'windows' and not gusb.found()
error('gusb feature is required for Windows build')
endif