mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-14 19:22:56 +01:00
CMakeLists: Do not search for system libusb on macOS
This commit is contained in:
1 parent
12834a1c44
commit
b403b17c8f
1 file changed
+4
-3
+4
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user