From 922b32233735b4aedd1253ed55ba687beb2fe922 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 23 Nov 2020 17:09:44 +0100 Subject: [PATCH] Enable the QML debugger on debug builds Signed-off-by: Kevin Ottens --- src/gui/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 2ff8c17ac..cf8af8fd2 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -4,6 +4,10 @@ set(CMAKE_AUTOMOC TRUE) set(CMAKE_AUTOUIC TRUE) set(CMAKE_AUTORCC TRUE) +if(CMAKE_BUILD_TYPE MATCHES Debug) + add_definitions(-DQT_QML_DEBUG) +endif() + IF(BUILD_UPDATER) add_subdirectory(updater) endif() -- 2.30.2