From 8eb5a08c1bb22c7234aa54c1cda46eb5e513bfa3 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Fri, 30 Apr 2021 09:25:14 +0200 Subject: [PATCH] qmlpreview: adapt to new location of debug translation protocol Change-Id: I6bcb6e9f18724f22b10586a6550fada991ca8678 Reviewed-by: Tim Jenssen --- src/plugins/qmlpreview/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/qmlpreview/CMakeLists.txt b/src/plugins/qmlpreview/CMakeLists.txt index 69d0eddcacb..532dd8999f2 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" )