From: Kevin Ottens Date: Mon, 23 Nov 2020 16:09:44 +0000 (+0100) Subject: Enable the QML debugger on debug builds X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~51^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=922b32233735b4aedd1253ed55ba687beb2fe922;p=nextcloud-desktop.git Enable the QML debugger on debug builds Signed-off-by: Kevin Ottens --- 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()