Enable the QML debugger on debug builds
authorKevin Ottens <kevin.ottens@nextcloud.com>
Mon, 23 Nov 2020 16:09:44 +0000 (17:09 +0100)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Mon, 23 Nov 2020 17:39:50 +0000 (17:39 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/CMakeLists.txt

index 2ff8c17ac951105fa7b9e9593b3a591e78a11d07..cf8af8fd2024b7eabaeea8514bdaf7413f180866 100644 (file)
@@ -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()