From 93843458f711fba46c2036d921f15bddffbd276f Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 24 Jan 2023 20:32:02 +0100 Subject: [PATCH] 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 Reviewed-by: Marco Bubke Reviewed-by: Eike Ziller --- src/tools/qml2puppet/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/qml2puppet/CMakeLists.txt b/src/tools/qml2puppet/CMakeLists.txt index 307a6c42c1b..d26cf959691 100644 --- a/src/tools/qml2puppet/CMakeLists.txt +++ b/src/tools/qml2puppet/CMakeLists.txt @@ -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