summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2026-01-03 12:47:30 +0100
committerJoshua Vandaƫle <joshua@vandaele.software>2026-02-25 07:25:29 +0100
commit3cea68c2e59f71a7b1e634fe31e7fd1dba670a07 (patch)
tree14ca8d753b699497e2915c2acc8c426602282056 /CMakeLists.txt
parent184c6ee068ed7de2c03b7c1426c0700bc20f696e (diff)
LibUSB: Improve library detection
Our FindLibUSB.cmake was previously entirely unused unless SDL was being built from Externals, we now rely on it again. It will use PkgConfig if applicable or fall back to looking around on the system, and more importantly it will always create an imported target.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3f27e994f..de9446014d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -708,9 +708,7 @@ if(ENABLE_CUBEB)
endif()
if(NOT ANDROID)
- dolphin_find_optional_system_library_pkgconfig(
- LibUSB libusb-1.0 LibUSB::LibUSB Externals/libusb
- )
+ dolphin_find_optional_system_library(LibUSB Externals/libusb)
add_definitions(-D__LIBUSB__)
endif()