Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -26,7 +26,7 @@ SET(STELLARIUM_RELEASE_BUILD 1 CACHE BOOL "Set 1 to bu
 ########### Detect Qt version
 SET(ENABLE_QT6 1 CACHE BOOL "Whether to try building with Qt6. If Qt6 is not found, Qt5 will be used.")
 IF(ENABLE_QT6)
-     FIND_PACKAGE(Qt6 COMPONENTS Core QUIET)
+     FIND_PACKAGE(Qt6 COMPONENTS Core GuiPrivate QUIET)
      # Suppressing warning for GuiPrivate component (required since Qt 6.10+)
      SET(QT_NO_PRIVATE_MODULE_WARNING ON)
 ENDIF()
