emulators/pcsx2: Prepare for Qt 6.10
Backport upstream patch to fix build with Qt 6.10. With hat: kde@
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
--- cmake/SearchForStuff.cmake.orig 2025-06-23 10:47:03 UTC
|
||||
Backport [1] to fix build with Qt 6.10.
|
||||
|
||||
[1] https://github.com/PCSX2/pcsx2/commit/8dffc857079e942ca77b091486c20c3c6530e4ed
|
||||
|
||||
--- cmake/SearchForStuff.cmake.orig 2025-06-29 19:47:12 UTC
|
||||
+++ cmake/SearchForStuff.cmake
|
||||
@@ -1,6 +1,8 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
@@ -9,3 +13,14 @@
|
||||
find_package(Git)
|
||||
|
||||
# Require threads on all OSes.
|
||||
@@ -108,6 +110,10 @@ find_package(Qt6 6.7.3 COMPONENTS CoreTools Core GuiTo
|
||||
|
||||
# Find the Qt components that we need.
|
||||
find_package(Qt6 6.7.3 COMPONENTS CoreTools Core GuiTools Gui WidgetsTools Widgets LinguistTools REQUIRED)
|
||||
+
|
||||
+if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
|
||||
+ find_package(Qt6 COMPONENTS GuiPrivate REQUIRED)
|
||||
+endif()
|
||||
|
||||
if(WIN32)
|
||||
add_subdirectory(3rdparty/rainterface EXCLUDE_FROM_ALL)
|
||||
|
||||
14
emulators/pcsx2/files/patch-pcsx2-qt_CMakeLists.txt
Normal file
14
emulators/pcsx2/files/patch-pcsx2-qt_CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
Back port [1] to fix build with Qt 6.10.
|
||||
|
||||
[1] https://github.com/PCSX2/pcsx2/commit/8dffc857079e942ca77b091486c20c3c6530e4ed
|
||||
|
||||
--- pcsx2-qt/CMakeLists.txt.orig 2025-06-29 19:47:12 UTC
|
||||
+++ pcsx2-qt/CMakeLists.txt
|
||||
@@ -265,6 +265,7 @@ target_link_libraries(pcsx2-qt PRIVATE
|
||||
PCSX2
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
+ Qt6::GuiPrivate
|
||||
Qt6::Widgets
|
||||
KDAB::kddockwidgets
|
||||
)
|
||||
Reference in New Issue
Block a user