use pkg-config to find libusb

This makes more (but not all) of the compilation process succeed on
NetBSD.
This commit is contained in:
Guilherme Janczak
2024-05-06 17:44:32 +00:00
parent 2c91367429
commit c1e6316bdc
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@ else()
target_link_libraries(hidapi PRIVATE udev)
else()
target_sources(hidapi PRIVATE hidapi-src/libusb/hid.c)
target_link_libraries(hidapi PRIVATE ${LIBUSB_LIBRARIES})
target_link_libraries(hidapi PRIVATE LibUSB::LibUSB)
endif()
endif()