File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ if (NOT CMAKE_BUILD_TYPE)
100
100
endif ()
101
101
102
102
set (QT_FPDEPS Gui Qml Quick QuickControls2 Widgets ShaderTools)
103
+ set (QT_PRIVDEPS QuickPrivate)
103
104
104
105
include (cmake/pch.cmake)
105
106
@@ -115,6 +116,7 @@ endif()
115
116
116
117
if (WAYLAND)
117
118
list (APPEND QT_FPDEPS WaylandClient)
119
+ list (APPEND QT_PRIVDEPS WaylandClientPrivate)
118
120
endif ()
119
121
120
122
if (SERVICE_STATUS_NOTIFIER OR SERVICE_MPRIS OR SERVICE_UPOWER OR SERVICE_NOTIFICATIONS OR BLUETOOTH)
@@ -127,6 +129,13 @@ endif()
127
129
128
130
find_package (Qt6 REQUIRED COMPONENTS ${QT_FPDEPS} )
129
131
132
+ # In Qt 6.10, private dependencies are required to be explicit,
133
+ # but they could not be explicitly depended on prior to 6.9.
134
+ if (Qt6_VERSION VERSION_GREATER_EQUAL "6.9.0" )
135
+ set (QT_NO_PRIVATE_MODULE_WARNING ON )
136
+ find_package (Qt6 REQUIRED COMPONENTS ${QT_PRIVDEPS} )
137
+ endif ()
138
+
130
139
set (CMAKE_AUTOUIC OFF )
131
140
qt_standard_project_setup(REQUIRES 6.6)
132
141
set (QT_QML_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /qml_modules)
You can’t perform that action at this time.
0 commit comments