Explorar o código

CMakeLists: Do not search for system libusb on macOS

MerryMage %!s(int64=6) %!d(string=hai) anos
pai
achega
6744e7ea4a
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      CMakeLists.txt

+ 4 - 3
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)