Browse Source
[cmake] Fix Qt component finding
Oops
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3319/head
crueter
3 weeks ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
5 additions and
6 deletions
-
CMakeLists.txt
|
|
|
@ -634,20 +634,19 @@ if (ENABLE_QT) |
|
|
|
## Components ## |
|
|
|
|
|
|
|
# Best practice is to ask for all components at once, so they are from the same version |
|
|
|
set(YUZU_QT_COMPONENTS2 Core Widgets Concurrent) |
|
|
|
set(YUZU_QT_COMPONENTS Core Widgets Concurrent) |
|
|
|
if (PLATFORM_LINUX) |
|
|
|
list(APPEND YUZU_QT_COMPONENTS2 DBus) |
|
|
|
list(APPEND YUZU_QT_COMPONENTS DBus) |
|
|
|
endif() |
|
|
|
if (YUZU_USE_QT_MULTIMEDIA) |
|
|
|
list(APPEND YUZU_QT_COMPONENTS2 Multimedia) |
|
|
|
list(APPEND YUZU_QT_COMPONENTS Multimedia) |
|
|
|
endif() |
|
|
|
if (YUZU_USE_QT_WEB_ENGINE) |
|
|
|
list(APPEND YUZU_QT_COMPONENTS2 WebEngineCore WebEngineWidgets) |
|
|
|
list(APPEND YUZU_QT_COMPONENTS WebEngineCore WebEngineWidgets) |
|
|
|
endif() |
|
|
|
if (ENABLE_QT_TRANSLATION) |
|
|
|
list(APPEND YUZU_QT_COMPONENTS2 LinguistTools) |
|
|
|
list(APPEND YUZU_QT_COMPONENTS LinguistTools) |
|
|
|
endif() |
|
|
|
set(YUZU_QT_COMPONENTS ${YUZU_QT_COMPONENTS2} PARENT_SCOPE) |
|
|
|
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS ${YUZU_QT_COMPONENTS}) |
|
|
|
set(QT_MAJOR_VERSION 6) |
|
|
|
|