mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Unbreak wirh Qt6 6.10
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
https://github.com/dolphin-emu/dolphin/pull/14165
|
||||
|
||||
Index: Source/Core/DolphinQt/CMakeLists.txt
|
||||
--- Source/Core/DolphinQt/CMakeLists.txt.orig
|
||||
+++ Source/Core/DolphinQt/CMakeLists.txt
|
||||
@@ -15,6 +15,11 @@ set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets Svg)
|
||||
+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()
|
||||
message(STATUS "Found Qt version ${Qt6_VERSION}")
|
||||
|
||||
set_property(TARGET Qt6::Core PROPERTY INTERFACE_COMPILE_FEATURES "")
|
||||
@@ -422,6 +427,13 @@ PRIVATE
|
||||
imgui
|
||||
implot
|
||||
)
|
||||
+
|
||||
+if (NEED_QT_GUI_PRIVATE_COMPONENT)
|
||||
+ target_link_libraries(dolphin-emu
|
||||
+ PRIVATE
|
||||
+ Qt6::GuiPrivate
|
||||
+ )
|
||||
+endif()
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(dolphin-emu
|
||||
Reference in New Issue
Block a user