cmake: fix system libusb discovery (#2731)

This commit is contained in:
Alexandre Bouvier 2025-03-31 19:29:52 +00:00 committed by GitHub
parent a5958bf7f0
commit a2a1ecde0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 3 deletions

View file

@ -202,8 +202,9 @@ if (NOT TARGET pugixml::pugixml)
endif()
# libusb
if (NOT TARGET usb-1.0)
if (NOT TARGET libusb::usb)
add_subdirectory(libusb)
add_library(libusb::usb ALIAS usb-1.0)
endif()
# Discord RPC