Line 0
Link Here
|
|
|
1 |
--- CMakeLists.txt.orig 2021-06-28 18:51:49 UTC |
2 |
+++ CMakeLists.txt |
3 |
@@ -423,11 +423,15 @@ endif() |
4 |
|
5 |
# Ensure libusb is properly configured (based on dolphin libusb include) |
6 |
if(NOT APPLE AND NOT YUZU_USE_BUNDLED_LIBUSB) |
7 |
- include(FindPkgConfig) |
8 |
- if (PKG_CONFIG_FOUND) |
9 |
- pkg_check_modules(LIBUSB QUIET libusb-1.0>=1.0.24) |
10 |
- else() |
11 |
+ if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") |
12 |
find_package(LibUSB) |
13 |
+ else() |
14 |
+ include(FindPkgConfig) |
15 |
+ if (PKG_CONFIG_FOUND) |
16 |
+ pkg_check_modules(LIBUSB QUIET libusb-1.0>=1.0.24) |
17 |
+ else() |
18 |
+ find_package(LibUSB) |
19 |
+ endif() |
20 |
endif() |
21 |
|
22 |
if (LIBUSB_FOUND) |