[compat] use gui in non-linux unices
All checks were successful
eden-license / license-header (pull_request) Successful in 34s

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-08-14 02:46:14 +01:00 committed by crueter
parent a310e55962
commit 193e915889
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6

View file

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