summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-12 04:47:52 +0200
committerGitHub <noreply@github.com>2020-07-12 04:47:52 +0200
commitf16a94fb39ef0a689975a21cdbe5dab35ba08cae (patch)
treeda78bf08d0e5c352388b1f7cee4f5f04eb4c3c79
parentMerge pull request #4305 from yuzu-emu/revert-4300-port-5441 (diff)
parentCMakeLists: Do not search for system libusb on macOS (diff)
downloadyuzu-f16a94fb39ef0a689975a21cdbe5dab35ba08cae.tar
yuzu-f16a94fb39ef0a689975a21cdbe5dab35ba08cae.tar.gz
yuzu-f16a94fb39ef0a689975a21cdbe5dab35ba08cae.tar.bz2
yuzu-f16a94fb39ef0a689975a21cdbe5dab35ba08cae.tar.lz
yuzu-f16a94fb39ef0a689975a21cdbe5dab35ba08cae.tar.xz
yuzu-f16a94fb39ef0a689975a21cdbe5dab35ba08cae.tar.zst
yuzu-f16a94fb39ef0a689975a21cdbe5dab35ba08cae.zip
-rw-r--r--CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c0e49c03..88ea04c08 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -330,14 +330,15 @@ elseif(SDL2_FOUND)
endif()
# Ensure libusb is properly configured (based on dolphin libusb include)
-include(FindPkgConfig)
-find_package(LibUSB)
+if(NOT APPLE)
+ include(FindPkgConfig)
+ find_package(LibUSB)
+endif()
if (NOT LIBUSB_FOUND)
add_subdirectory(externals/libusb)
set(LIBUSB_LIBRARIES usb)
endif()
-
# Prefer the -pthread flag on Linux.
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)