summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-15 02:56:39 +0100
committerGitHub <noreply@github.com>2022-03-15 02:56:39 +0100
commit59d2a38daa78bc211647bd742de068295ae65009 (patch)
treee644341a4ee407a0c04c47cb9cea699681e6e8bc
parentMerge pull request #8008 from ameerj/rescale-offsets-array (diff)
parentbuild(cmake): fix missing Qt5::DBus link target for bundled linux package (diff)
downloadyuzu-59d2a38daa78bc211647bd742de068295ae65009.tar
yuzu-59d2a38daa78bc211647bd742de068295ae65009.tar.gz
yuzu-59d2a38daa78bc211647bd742de068295ae65009.tar.bz2
yuzu-59d2a38daa78bc211647bd742de068295ae65009.tar.lz
yuzu-59d2a38daa78bc211647bd742de068295ae65009.tar.xz
yuzu-59d2a38daa78bc211647bd742de068295ae65009.tar.zst
yuzu-59d2a38daa78bc211647bd742de068295ae65009.zip
-rw-r--r--CMakeLists.txt6
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()