diff options
| author | Tim Jenssen <[email protected]> | 2025-12-17 19:07:33 +0100 |
|---|---|---|
| committer | Tim Jenssen <[email protected]> | 2025-12-18 09:24:45 +0000 |
| commit | dcba139dfb5ff1bc763b346f26a8f4c65a6fb8d6 (patch) | |
| tree | 337a76238952ec2a2745ef401ef1c9c17ac48da6 | |
| parent | cd2a81679b2283796c4de097d88231da38aea9e3 (diff) | |
CMake: fix external plugins buildqds/dev
With current setup they need to have Qt6CorePrivate
and Qt6QmlPrivate if the do find_package(QtCreator ...
Change-Id: I03c8ee709b316b3fb413758d059c0b850c4308bb
Reviewed-by: Thomas Hartmann <[email protected]>
| -rw-r--r-- | cmake/QtCreatorConfig.cmake.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/QtCreatorConfig.cmake.in b/cmake/QtCreatorConfig.cmake.in index b61fe4df1c4..f96d4cda75d 100644 --- a/cmake/QtCreatorConfig.cmake.in +++ b/cmake/QtCreatorConfig.cmake.in @@ -23,6 +23,13 @@ find_dependency(Qt6 "@IDE_QT_VERSION_MIN@" ) find_dependency(Qt6 COMPONENTS Quick QuickWidgets QUIET) +# Consumers (external plugins) import QtCreatorTargets.cmake via find_package(QtCreator). +# Some exported targets (e.g. QtCreator::QmlPuppetCommunication, QtCreator::QmlDesignerUtils) +# have Qt6::CorePrivate / Qt6::QmlPrivate in INTERFACE_LINK_LIBRARIES; these targets are only +# defined by the separate Qt6CorePrivate/Qt6QmlPrivate packages, so load them before importing. +find_dependency(Qt6CorePrivate REQUIRED) +find_dependency(Qt6QmlPrivate REQUIRED) + if (NOT IDE_VERSION) include("${CMAKE_CURRENT_LIST_DIR}/QtCreatorIDEBranding.cmake") endif() |
