From 3987cf2a668d0860c2a69db5fac44e78fb6d7de9 Mon Sep 17 00:00:00 2001 From: Hillwood Yang Date: Sun, 31 May 2026 21:31:47 +0800 Subject: [PATCH] fix(cmake): fix missing target error when building with Qt >= 6.10 Add QuickTemplates2Private to Qt private components to fix missing target error when building with Qt >= 6.10 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48ba3533b..f48d57954 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ include(KDEGitCommitHooks) find_package(Qt${QT_VERSION_MAJOR} ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Core Gui Concurrent Quick QuickTemplates2 WaylandClient WaylandCompositor DBus LinguistTools Sql) if(Qt${QT_VERSION_MAJOR}_VERSION VERSION_GREATER_EQUAL 6.10) - find_package(Qt${QT_VERSION_MAJOR} COMPONENTS WaylandClientPrivate WaylandCompositorPrivate REQUIRED) + find_package(Qt${QT_VERSION_MAJOR} COMPONENTS WaylandClientPrivate WaylandCompositorPrivate QuickTemplates2Private REQUIRED) endif() find_package(Dtk${DTK_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui) find_package(ICU 74.2 REQUIRED COMPONENTS uc i18n io)