Skip to content

Commit

Permalink
meson: fail if both libusb and libudev are used
Browse files Browse the repository at this point in the history
  • Loading branch information
LudovicRousseau committed May 20, 2024
1 parent 763e4fe commit f9e84d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ if get_option('libudev')
endif

if get_option('libusb')
if get_option('libudev')
error('You can\'t use both libudev and libusb')
endif
libusb_dep = dependency('libusb-1.0')
pcscd_dep += libusb_dep
conf_data.set('HAVE_LIBUSB', true)
Expand Down

0 comments on commit f9e84d0

Please sign in to comment.