aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZhao Yuhang <[email protected]>2025-04-18 21:25:54 +0800
committerZhao Yuhang <[email protected]>2025-04-24 02:14:35 +0000
commit793e2fbff2812ef359c7e5b549f56ca3aba876e9 (patch)
treeb6a26e575da3c40cbbac93b1b94567a4461a2340 /src
parentade5d447fb0e6a4f2e9213441f7f75985475e716 (diff)
quick controls: fix cmake configure warning
Line 68 is using the Qt::QuickControls2WindowsStyleImpl target, however, it is included after the qt_internal_add_qml_module() call, and this always cause warning [1] when CMake is configuring. [1] CMake Warning at qtbase/cmake/QtFindPackageHelpers.cmake:561 (message): Could not find target Qt6::QuickControls2WindowsStyleImpl to query its package name. Defaulting to package name Qt6QuickControls2WindowsStyleImpl. Consider re-arranging the project structure to ensure the target exists by this point. Call Stack (most recent call first): qtbase/cmake/QtFindPackageHelpers.cmake:620 (qt_internal_get_package_name_of_target) qtbase/cmake/QtTargetHelpers.cmake:286 (qt_internal_register_target_dependencies) qtbase/cmake/QtPluginHelpers.cmake:290 (qt_internal_extend_target) qtdeclarative/src/qml/Qt6QmlBuildInternals.cmake:224 (qt_internal_add_plugin) qtdeclarative/src/quickcontrols/windows/CMakeLists.txt:39 (qt_internal_add_qml_module) Change-Id: I26a430bad89aee96ecb0f0b4610a16b88704121b Reviewed-by: Mitch Curtis <[email protected]> Reviewed-by: Alexey Edelev <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/quickcontrols/windows/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols/windows/CMakeLists.txt b/src/quickcontrols/windows/CMakeLists.txt
index 36e871abdb..8b8569952c 100644
--- a/src/quickcontrols/windows/CMakeLists.txt
+++ b/src/quickcontrols/windows/CMakeLists.txt
@@ -5,6 +5,8 @@
## qtquickcontrols2windowsstyleplugin Plugin:
#####################################################################
+add_subdirectory(impl)
+
set(qml_files
"ApplicationWindow.qml"
"Button.qml"
@@ -70,8 +72,6 @@ qt_internal_add_qml_module(qtquickcontrols2windowsstyleplugin
Qt::QuickTemplates2Private
)
-add_subdirectory(impl)
-
# Native style is a dependency of the Windows style.
_qt_internal_add_qml_static_plugin_dependency(qtquickcontrols2windowsstyleplugin
qtquickcontrols2nativestyleplugin)