summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a9e489ba0..768c9cea6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -459,6 +459,11 @@ if (ENABLE_QT)
if (UNIX AND NOT APPLE)
find_package(Qt6 REQUIRED COMPONENTS DBus)
+ 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)
+ endif()
endif()
if (ENABLE_QT_TRANSLATION)