forked from qt-creator/qt-creator
fix build without QmlPrivate
Change-Id: Ibc333a07137b7afb39676d4d3bc89d0c4dadb11d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -21,6 +21,7 @@ extend_qtc_plugin(QmlPreview
|
||||
tests/qmlpreviewplugin_test.cpp tests/qmlpreviewplugin_test.h
|
||||
)
|
||||
|
||||
if(TARGET Qt${QT_VERSION_MAJOR}::QmlPrivate)
|
||||
# check if Qt version have_qml_debug_translation_protocol
|
||||
# will be introduced in Qt 6.2, but there are users
|
||||
# who needs it in older but special built Qt versions aswell
|
||||
@@ -38,3 +39,4 @@ extend_qtc_plugin(QmlPreview
|
||||
PUBLIC_DEPENDS Qt5::QmlPrivate
|
||||
PUBLIC_DEFINES "FOUND_QML_DEBUG_TRANSLATION_PROTOCOL"
|
||||
)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user