summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-11-04 13:12:46 +0100
committerJan Beich <jbeich@FreeBSD.org>2022-11-04 14:01:17 +0100
commitd7d7ae8219781cefd67e6c08a4c2e7d3ffe37e60 (patch)
tree09ffe529a5420da358ce75ef7217c354ba0e2bbb /CMakeLists.txt
parentUpdate shader cache version. (#9175) (diff)
downloadyuzu-d7d7ae8219781cefd67e6c08a4c2e7d3ffe37e60.tar
yuzu-d7d7ae8219781cefd67e6c08a4c2e7d3ffe37e60.tar.gz
yuzu-d7d7ae8219781cefd67e6c08a4c2e7d3ffe37e60.tar.bz2
yuzu-d7d7ae8219781cefd67e6c08a4c2e7d3ffe37e60.tar.lz
yuzu-d7d7ae8219781cefd67e6c08a4c2e7d3ffe37e60.tar.xz
yuzu-d7d7ae8219781cefd67e6c08a4c2e7d3ffe37e60.tar.zst
yuzu-d7d7ae8219781cefd67e6c08a4c2e7d3ffe37e60.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b625743ea..c6fc5dd9e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -218,11 +218,11 @@ if(ENABLE_QT)
set(QT_VERSION 5.15)
# Check for system Qt on Linux, fallback to bundled Qt
- if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+ if (UNIX AND NOT APPLE)
if (NOT YUZU_USE_BUNDLED_QT)
find_package(Qt5 ${QT_VERSION} COMPONENTS Widgets DBus Multimedia)
endif()
- if (NOT Qt5_FOUND OR YUZU_USE_BUNDLED_QT)
+ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND (NOT Qt5_FOUND OR YUZU_USE_BUNDLED_QT))
# Check for dependencies, then enable bundled Qt download
# Check that the system GLIBCXX version is compatible
@@ -323,7 +323,7 @@ if(ENABLE_QT)
set(YUZU_QT_NO_CMAKE_SYSTEM_PATH "NO_CMAKE_SYSTEM_PATH")
endif()
- if ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND YUZU_USE_BUNDLED_QT)
+ if (UNIX AND NOT APPLE AND YUZU_USE_BUNDLED_QT)
find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets Concurrent Multimedia DBus ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH})
else()
find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets Concurrent Multimedia ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH})