Define QT_NO_DEBUG for non-debug use of Qt 4.

This commit is contained in:
Stephen Kelly 2013-12-10 18:31:36 +01:00
parent 330af68ed4
commit b9f0d81c4b
1 changed files with 4 additions and 0 deletions

View File

@ -1203,6 +1203,10 @@ if (QT_QMAKE_EXECUTABLE AND QTVERSION)
"${QT_MKSPECS_DIR}/default"
${QT_INCLUDE_DIR}
)
set_property(TARGET Qt4::QtCore APPEND PROPERTY
INTERFACE_COMPILE_DEFINITIONS
$<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>
)
set_property(TARGET Qt4::QtCore PROPERTY
INTERFACE_QT_MAJOR_VERSION 4
)