summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-06-03 10:38:29 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2021-06-03 10:38:29 +0200
commit890acfa2c001a034e0a837404118b3670305e0df (patch)
treec560bbea1f37efefcf52f381fadac010ea4a5f01 /CMakeLists.txt
parentcmake: General improvements to libusb linking (diff)
downloadyuzu-890acfa2c001a034e0a837404118b3670305e0df.tar
yuzu-890acfa2c001a034e0a837404118b3670305e0df.tar.gz
yuzu-890acfa2c001a034e0a837404118b3670305e0df.tar.bz2
yuzu-890acfa2c001a034e0a837404118b3670305e0df.tar.lz
yuzu-890acfa2c001a034e0a837404118b3670305e0df.tar.xz
yuzu-890acfa2c001a034e0a837404118b3670305e0df.tar.zst
yuzu-890acfa2c001a034e0a837404118b3670305e0df.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 68d9e5f9d..97afaf1a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -430,13 +430,13 @@ if(NOT APPLE AND NOT YUZU_USE_BUNDLED_LIBUSB)
find_package(LibUSB)
endif()
- if (NOT LIBUSB_FOUND)
- message(WARNING "libusb not found, falling back to externals")
- set(YUZU_USE_BUNDLED_LIBUSB ON)
- else()
+ if (LIBUSB_FOUND)
add_library(usb INTERFACE)
target_include_directories(usb INTERFACE "${LIBUSB_INCLUDE_DIRS}")
target_link_libraries(usb INTERFACE "${LIBUSB_LIBRARIES}")
+ else()
+ message(WARNING "libusb not found, falling back to externals")
+ set(YUZU_USE_BUNDLED_LIBUSB ON)
endif()
endif()