diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-10-12 22:55:52 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-10-12 23:53:05 -0500 |
| commit | b3bdad416ca0a6a604dca12bed7bd00542092d25 (patch) | |
| tree | 50e1252f05323d51cba7be7fff1c138c66949031 /Source/Core | |
| parent | 8323c21e40f1faaa19e097d91fa58c60dc0104fc (diff) | |
CMakeLists: Fix build with Qt6.10. GuiPrivate component is needed to #include qplatformnativeinterface.h in MainWindow.cpp.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 47df65334b..656537f719 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -15,6 +15,13 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets Svg) + +if (LINUX AND 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() + message(STATUS "Found Qt version ${Qt6_VERSION}") set_property(TARGET Qt6::Core PROPERTY INTERFACE_COMPILE_FEATURES "") @@ -440,6 +447,13 @@ PRIVATE implot ) +if (NEED_QT_GUI_PRIVATE_COMPONENT) + target_link_libraries(dolphin-emu + PRIVATE + Qt6::GuiPrivate + ) +endif() + if (WIN32) target_link_libraries(dolphin-emu PRIVATE |
