summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-10 17:31:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-12-10 17:33:52 (GMT)
commitb9f0d81c4b605af7667a1f384fc20c17a577f5a8 (patch)
treec5b34cf235a5d208f4d302b630f66012fd7cbd73 /Modules/FindQt4.cmake
parent330af68ed4eca375160b31aefd71bd6ea11b586f (diff)
downloadCMake-b9f0d81c4b605af7667a1f384fc20c17a577f5a8.zip
CMake-b9f0d81c4b605af7667a1f384fc20c17a577f5a8.tar.gz
CMake-b9f0d81c4b605af7667a1f384fc20c17a577f5a8.tar.bz2
Define QT_NO_DEBUG for non-debug use of Qt 4.
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r--Modules/FindQt4.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index 24747f7..28b8454 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -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
)