Merge pull request #14165 from BSDKaffee/qt-6.10-fix

Fix build for non-Linux with Qt 6.10+
This commit is contained in:
JosJuice 2025-11-24 18:37:23 +01:00 committed by GitHub
commit 1fa5accf03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ set(CMAKE_AUTORCC ON)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets Svg)
if (LINUX AND Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
if (Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
# GuiPrivate is needed to #include qplatformnativeinterface.h in MainWindow.cpp with Qt 6.10+.
set(NEED_QT_GUI_PRIVATE_COMPONENT ON)
find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)