diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b625743ea..1d13dc74e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -133,13 +133,13 @@ if (NOT ENABLE_GENERIC) | |||
| 133 | if (MSVC) | 133 | if (MSVC) |
| 134 | detect_architecture("_M_AMD64" x86_64) | 134 | detect_architecture("_M_AMD64" x86_64) |
| 135 | detect_architecture("_M_IX86" x86) | 135 | detect_architecture("_M_IX86" x86) |
| 136 | detect_architecture("_M_ARM" ARM) | 136 | detect_architecture("_M_ARM" arm) |
| 137 | detect_architecture("_M_ARM64" ARM64) | 137 | detect_architecture("_M_ARM64" arm64) |
| 138 | else() | 138 | else() |
| 139 | detect_architecture("__x86_64__" x86_64) | 139 | detect_architecture("__x86_64__" x86_64) |
| 140 | detect_architecture("__i386__" x86) | 140 | detect_architecture("__i386__" x86) |
| 141 | detect_architecture("__arm__" ARM) | 141 | detect_architecture("__arm__" arm) |
| 142 | detect_architecture("__aarch64__" ARM64) | 142 | detect_architecture("__aarch64__" arm64) |
| 143 | endif() | 143 | endif() |
| 144 | endif() | 144 | endif() |
| 145 | 145 | ||
| @@ -218,11 +218,11 @@ if(ENABLE_QT) | |||
| 218 | set(QT_VERSION 5.15) | 218 | set(QT_VERSION 5.15) |
| 219 | 219 | ||
| 220 | # Check for system Qt on Linux, fallback to bundled Qt | 220 | # Check for system Qt on Linux, fallback to bundled Qt |
| 221 | if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | 221 | if (UNIX AND NOT APPLE) |
| 222 | if (NOT YUZU_USE_BUNDLED_QT) | 222 | if (NOT YUZU_USE_BUNDLED_QT) |
| 223 | find_package(Qt5 ${QT_VERSION} COMPONENTS Widgets DBus Multimedia) | 223 | find_package(Qt5 ${QT_VERSION} COMPONENTS Widgets DBus Multimedia) |
| 224 | endif() | 224 | endif() |
| 225 | if (NOT Qt5_FOUND OR YUZU_USE_BUNDLED_QT) | 225 | if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND (NOT Qt5_FOUND OR YUZU_USE_BUNDLED_QT)) |
| 226 | # Check for dependencies, then enable bundled Qt download | 226 | # Check for dependencies, then enable bundled Qt download |
| 227 | 227 | ||
| 228 | # Check that the system GLIBCXX version is compatible | 228 | # Check that the system GLIBCXX version is compatible |
| @@ -323,7 +323,7 @@ if(ENABLE_QT) | |||
| 323 | 323 | ||
| 324 | set(YUZU_QT_NO_CMAKE_SYSTEM_PATH "NO_CMAKE_SYSTEM_PATH") | 324 | set(YUZU_QT_NO_CMAKE_SYSTEM_PATH "NO_CMAKE_SYSTEM_PATH") |
| 325 | endif() | 325 | endif() |
| 326 | if ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND YUZU_USE_BUNDLED_QT) | 326 | if (UNIX AND NOT APPLE AND YUZU_USE_BUNDLED_QT) |
| 327 | find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets Concurrent Multimedia DBus ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH}) | 327 | find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets Concurrent Multimedia DBus ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH}) |
| 328 | else() | 328 | else() |
| 329 | find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets Concurrent Multimedia ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH}) | 329 | find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets Concurrent Multimedia ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH}) |