From 68ec24797b54aee72f2e5d50f77bc646140e085c Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 4 Feb 2015 13:43:02 +0100 Subject: [PATCH] Add some define. Since Qt5.4, on release build, qDebug do not provide anymore the line number unless we define QT_MESSAGELOGCONTEXT Also define QT_USE_QSTRINGBUILDER while i'm on it (free optimisation) --- cmake/modules/QtVersionAbstraction.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/QtVersionAbstraction.cmake b/cmake/modules/QtVersionAbstraction.cmake index 51b1dd181..020aab4ea 100644 --- a/cmake/modules/QtVersionAbstraction.cmake +++ b/cmake/modules/QtVersionAbstraction.cmake @@ -103,6 +103,9 @@ endif() #Enable deprecated symbols add_definitions("-DQT_DISABLE_DEPRECATED_BEFORE=0") + + add_definitions("-DQT_USE_QSTRINGBUILDER") #optimize string concatenation + add_definitions("-DQT_MESSAGELOGCONTEXT") #enable function name and line number in debug output endif( Qt5Core_FOUND ) if(NOT Qt5Core_FOUND)