[compat] use gui in non-linux unices

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-08-14 02:46:14 +01:00
parent bc1a0b54e8
commit 79283ea8fa
Signed by untrusted user: Lizzie
GPG key ID: D9E134A23AD395CE

View file

@ -538,8 +538,10 @@ if (ENABLE_QT)
find_package(Qt6 REQUIRED COMPONENTS Multimedia) find_package(Qt6 REQUIRED COMPONENTS Multimedia)
endif() endif()
if (UNIX AND NOT APPLE) if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
find_package(Qt6 REQUIRED COMPONENTS DBus GuiPrivate) find_package(Qt6 REQUIRED COMPONENTS DBus GuiPrivate)
elseif (UNIX AND NOT APPLE)
find_package(Qt6 REQUIRED COMPONENTS DBus Gui)
endif() endif()
if (ENABLE_QT_TRANSLATION) if (ENABLE_QT_TRANSLATION)