From e614e837fafc927d64ef4d9b5866cbccd0b44281 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Mon, 12 Aug 2019 13:38:17 +0200 Subject: [PATCH] Add QT_QML_DEBUG define conversion Add QT_QML_DEBUG to target when we have qml_debug in qmake's CONFIG variable. Change-Id: I266c7313db12667498d4f770c73aec9e79c0b50e Reviewed-by: Alexandru Croitor --- util/cmake/pro2cmake.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 767a2b4371..e47cba50ab 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -1362,6 +1362,9 @@ def write_defines(cm_fh: typing.IO[str], scope: Scope, cmake_parameter: str, *, defines = [d.replace('=\\\\\\"$$PWD/\\\\\\"', '="${CMAKE_CURRENT_SOURCE_DIR}/"') for d in defines] + if 'qml_debug' in scope.get('CONFIG'): + defines.append('QT_QML_DEBUG') + write_list(cm_fh, defines, cmake_parameter, indent, footer=footer)