diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 27383bce8..88ea04c08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -151,7 +151,7 @@ macro(yuzu_find_packages) | |||
| 151 | # Cmake Pkg Prefix Version Conan Pkg | 151 | # Cmake Pkg Prefix Version Conan Pkg |
| 152 | "Boost 1.71 boost/1.72.0" | 152 | "Boost 1.71 boost/1.72.0" |
| 153 | "Catch2 2.11 catch2/2.11.0" | 153 | "Catch2 2.11 catch2/2.11.0" |
| 154 | "fmt 6.2 fmt/6.2.0" | 154 | "fmt 7.0 fmt/7.0.1" |
| 155 | # can't use until https://github.com/bincrafters/community/issues/1173 | 155 | # can't use until https://github.com/bincrafters/community/issues/1173 |
| 156 | #"libzip 1.5 libzip/1.5.2@bincrafters/stable" | 156 | #"libzip 1.5 libzip/1.5.2@bincrafters/stable" |
| 157 | "lz4 1.8 lz4/1.9.2" | 157 | "lz4 1.8 lz4/1.9.2" |
| @@ -211,7 +211,7 @@ if(ENABLE_QT) | |||
| 211 | 211 | ||
| 212 | set(QT_PREFIX_HINT HINTS "${QT_PREFIX}") | 212 | set(QT_PREFIX_HINT HINTS "${QT_PREFIX}") |
| 213 | endif() | 213 | endif() |
| 214 | find_package(Qt5 5.9 COMPONENTS Widgets OpenGL ${QT_PREFIX_HINT}) | 214 | find_package(Qt5 5.9 COMPONENTS Widgets ${QT_PREFIX_HINT}) |
| 215 | if (YUZU_USE_QT_WEB_ENGINE) | 215 | if (YUZU_USE_QT_WEB_ENGINE) |
| 216 | find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets) | 216 | find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets) |
| 217 | endif() | 217 | endif() |
| @@ -287,7 +287,7 @@ if (CONAN_REQUIRED_LIBS) | |||
| 287 | if(ENABLE_QT) | 287 | if(ENABLE_QT) |
| 288 | list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}") | 288 | list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}") |
| 289 | list(APPEND CMAKE_PREFIX_PATH "${CONAN_QT_ROOT_RELEASE}") | 289 | list(APPEND CMAKE_PREFIX_PATH "${CONAN_QT_ROOT_RELEASE}") |
| 290 | find_package(Qt5 5.9 REQUIRED COMPONENTS Widgets OpenGL) | 290 | find_package(Qt5 5.9 REQUIRED COMPONENTS Widgets) |
| 291 | if (YUZU_USE_QT_WEB_ENGINE) | 291 | if (YUZU_USE_QT_WEB_ENGINE) |
| 292 | find_package(Qt5 REQUIRED COMPONENTS WebEngineCore WebEngineWidgets) | 292 | find_package(Qt5 REQUIRED COMPONENTS WebEngineCore WebEngineWidgets) |
| 293 | endif() | 293 | endif() |
| @@ -330,10 +330,14 @@ elseif(SDL2_FOUND) | |||
| 330 | endif() | 330 | endif() |
| 331 | 331 | ||
| 332 | # Ensure libusb is properly configured (based on dolphin libusb include) | 332 | # Ensure libusb is properly configured (based on dolphin libusb include) |
| 333 | find_package(LibUSB) | 333 | if(NOT APPLE) |
| 334 | add_subdirectory(externals/libusb) | 334 | include(FindPkgConfig) |
| 335 | set(LIBUSB_LIBRARIES usb) | 335 | find_package(LibUSB) |
| 336 | 336 | endif() | |
| 337 | if (NOT LIBUSB_FOUND) | ||
| 338 | add_subdirectory(externals/libusb) | ||
| 339 | set(LIBUSB_LIBRARIES usb) | ||
| 340 | endif() | ||
| 337 | 341 | ||
| 338 | # Prefer the -pthread flag on Linux. | 342 | # Prefer the -pthread flag on Linux. |
| 339 | set(THREADS_PREFER_PTHREAD_FLAG ON) | 343 | set(THREADS_PREFER_PTHREAD_FLAG ON) |