diff options
author | BytesGalore <3903215+BytesGalore@users.noreply.github.com> | 2022-03-06 11:51:34 +0100 |
---|---|---|
committer | BytesGalore <3903215+BytesGalore@users.noreply.github.com> | 2022-03-12 08:40:33 +0100 |
commit | 948f6e1112a856c820076e5bc3a7f9ee63b36374 (patch) | |
tree | 6a7f56fca0683e82e3d3f8742fc019615d97a325 /CMakeLists.txt | |
parent | Merge pull request #7997 from Wunkolo/cpu_detect_more (diff) | |
download | yuzu-948f6e1112a856c820076e5bc3a7f9ee63b36374.tar yuzu-948f6e1112a856c820076e5bc3a7f9ee63b36374.tar.gz yuzu-948f6e1112a856c820076e5bc3a7f9ee63b36374.tar.bz2 yuzu-948f6e1112a856c820076e5bc3a7f9ee63b36374.tar.lz yuzu-948f6e1112a856c820076e5bc3a7f9ee63b36374.tar.xz yuzu-948f6e1112a856c820076e5bc3a7f9ee63b36374.tar.zst yuzu-948f6e1112a856c820076e5bc3a7f9ee63b36374.zip |
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bf55d664..11a459813 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,7 +363,11 @@ if(ENABLE_QT) set(YUZU_QT_NO_CMAKE_SYSTEM_PATH "NO_CMAKE_SYSTEM_PATH") endif() - find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH}) + if ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND YUZU_USE_BUNDLED_QT) + find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets DBus ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH}) + else() + find_package(Qt5 ${QT_VERSION} REQUIRED COMPONENTS Widgets ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH}) + endif() if (YUZU_USE_QT_WEB_ENGINE) find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets) endif() |