diff --git a/src/app/app.pro b/src/app/app.pro index 8cd33d0f9..2f2885803 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -25,6 +25,10 @@ CONFIG -= debug_and_release debug_and_release_target # We use C++11 standard CONFIG += c++11 +# Since Qt 5.4.0 the source code location is recorded only in debug builds. +# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. +DEFINES += QT_MESSAGELOGCONTEXT + # Directory for executable file DESTDIR = bin diff --git a/src/libs/ifc/ifc.pro b/src/libs/ifc/ifc.pro index 8981fa650..cc52de5c4 100644 --- a/src/libs/ifc/ifc.pro +++ b/src/libs/ifc/ifc.pro @@ -26,6 +26,10 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# Since Qt 5.4.0 the source code location is recorded only in debug builds. +# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. +DEFINES += QT_MESSAGELOGCONTEXT + include(ifc.pri) # This is static library so no need in "make install" diff --git a/src/libs/qmuparser/qmuparser.pro b/src/libs/qmuparser/qmuparser.pro index f1f74ac6b..8fec99c3a 100644 --- a/src/libs/qmuparser/qmuparser.pro +++ b/src/libs/qmuparser/qmuparser.pro @@ -22,6 +22,10 @@ CONFIG -= debug_and_release debug_and_release_target # We use C++11 standard CONFIG += c++11 +# Since Qt 5.4.0 the source code location is recorded only in debug builds. +# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. +DEFINES += QT_MESSAGELOGCONTEXT + DEFINES += QMUPARSER_LIBRARY # directory for executable file diff --git a/src/libs/vobj/vobj.pro b/src/libs/vobj/vobj.pro index 8e08053b3..db7ed3ff9 100644 --- a/src/libs/vobj/vobj.pro +++ b/src/libs/vobj/vobj.pro @@ -20,6 +20,10 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# Since Qt 5.4.0 the source code location is recorded only in debug builds. +# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. +DEFINES += QT_MESSAGELOGCONTEXT + include(vobj.pri) # This is static library so no need in "make install" diff --git a/src/libs/vpropertyexplorer/vpropertyexplorer.pro b/src/libs/vpropertyexplorer/vpropertyexplorer.pro index c7fab7c30..7c85ea983 100644 --- a/src/libs/vpropertyexplorer/vpropertyexplorer.pro +++ b/src/libs/vpropertyexplorer/vpropertyexplorer.pro @@ -22,6 +22,10 @@ TEMPLATE = lib # We use C++11 standard CONFIG += c++11 +# Since Qt 5.4.0 the source code location is recorded only in debug builds. +# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. +DEFINES += QT_MESSAGELOGCONTEXT + DEFINES += VPROPERTYEXPLORER_LIBRARY # directory for executable file