File fix-qt-6.10.patch of Package sdrangel

diff -rubN sdrangel-7.22.9/sdrbase/CMakeLists.txt sdrangel-7.22.9-patched/sdrbase/CMakeLists.txt
--- sdrangel-7.22.9/sdrbase/CMakeLists.txt	2025-09-28 15:27:43.000000000 -0400
+++ sdrangel-7.22.9-patched/sdrbase/CMakeLists.txt	2025-11-27 14:52:16.647548863 -0500
@@ -7,6 +7,10 @@
 endif()
 find_package(Opus REQUIRED)
 
+IF(Qt6Core_VERSION VERSION_GREATER_EQUAL 6.10)
+    FIND_PACKAGE(Qt6 REQUIRED COMPONENTS GuiPrivate)
+ENDIF()
+
 if(FFTW3F_FOUND)
     set(sdrbase_SOURCES
         ${sdrbase_SOURCES}
@@ -708,7 +712,7 @@
 endif()
 if (Qt6_FOUND)
     target_link_libraries(sdrbase
-        Qt::CorePrivate
+        Qt::Core Qt::CorePrivate
     )
 endif()
 if(ANDROID AND NOT ENABLE_QT6)
openSUSE Build Service is sponsored by