aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2021-04-30 09:25:14 +0200
committerTim Jenssen <tim.jenssen@qt.io>2021-05-03 07:17:57 +0000
commit8eb5a08c1bb22c7234aa54c1cda46eb5e513bfa3 (patch)
treebf6d77959eb2174e08135d68fadc248b1c610b3a
parent24739515e5d64af7a9d6f009b7e70f4d6f8ad6e1 (diff)
qmlpreview: adapt to new location of debug translation protocol
Change-Id: I6bcb6e9f18724f22b10586a6550fada991ca8678 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--src/plugins/qmlpreview/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/qmlpreview/CMakeLists.txt b/src/plugins/qmlpreview/CMakeLists.txt
index 69d0eddcac..532dd8999f 100644
--- a/src/plugins/qmlpreview/CMakeLists.txt
+++ b/src/plugins/qmlpreview/CMakeLists.txt
@@ -1,5 +1,3 @@
-find_package(Qt5 COMPONENTS QmlDebug REQUIRED)
-
add_qtc_plugin(QmlPreview
PUBLIC_DEPENDS QmlDebug
DEPENDS QmlJS
@@ -28,7 +26,7 @@ extend_qtc_plugin(QmlPreview
# who needs it in older but special built Qt versions aswell
string(REGEX MATCH "^[0-9]*" QT_VERSION_MAJOR ${Qt5_VERSION})
get_target_property(qmldebugprivate_include_directories
- Qt${QT_VERSION_MAJOR}::QmlDebugPrivate
+ Qt${QT_VERSION_MAJOR}::QmlPrivate
INTERFACE_INCLUDE_DIRECTORIES
)
find_file(have_qml_debug_translation_protocol
@@ -37,6 +35,6 @@ find_file(have_qml_debug_translation_protocol
)
extend_qtc_plugin(QmlPreview
CONDITION have_qml_debug_translation_protocol
- DEPENDS Qt5::QmlDebugPrivate
+ PUBLIC_DEPENDS Qt5::QmlPrivate
PUBLIC_DEFINES "FOUND_QML_DEBUG_TRANSLATION_PROTOCOL"
)