forked from qt-creator/qt-creator
QmlPuppet: fix enable preview in release builds
Since qmlpuppet is also used as QML runtime for the preview QML debug channel this should be enabled in every build. Change-Id: I0f9c10f1adf24f3db7da2389aa8a72e14b25433d Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -214,7 +214,8 @@ extend_qtc_executable(qml2puppet
|
||||
|
||||
if (Qt5_VERSION VERSION_GREATER_EQUAL 6.4.0)
|
||||
extend_qtc_executable(qml2puppet
|
||||
DEFINES ENABLE_INTERNAL_QML_RUNTIME
|
||||
# QT_QML_DEBUG is disabled in release builds, but is necessary to have the preview debug channel
|
||||
DEFINES ENABLE_INTERNAL_QML_RUNTIME QT_QML_DEBUG
|
||||
PUBLIC_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/qml2puppet/runner
|
||||
SOURCES_PREFIX qml2puppet/runner
|
||||
SOURCES
|
||||
|
||||
Reference in New Issue
Block a user