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:
Tim Jenssen
2023-01-24 20:32:02 +01:00
parent 444f620b05
commit 93843458f7

View File

@@ -214,7 +214,8 @@ extend_qtc_executable(qml2puppet
if (Qt5_VERSION VERSION_GREATER_EQUAL 6.4.0) if (Qt5_VERSION VERSION_GREATER_EQUAL 6.4.0)
extend_qtc_executable(qml2puppet 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 PUBLIC_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/qml2puppet/runner
SOURCES_PREFIX qml2puppet/runner SOURCES_PREFIX qml2puppet/runner
SOURCES SOURCES