diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-08-26 15:22:27 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-08-26 15:22:27 (GMT) |
commit | 607e4eb4b4301e98ae4a9afa095d52f2edb3ab81 (patch) | |
tree | c93c9c67fed79ea54dbbfe4cadceac099674f036 /Modules | |
parent | 81f89284c6f121698fb8c9ebd86afb149fee76ed (diff) | |
download | CMake-607e4eb4b4301e98ae4a9afa095d52f2edb3ab81.zip CMake-607e4eb4b4301e98ae4a9afa095d52f2edb3ab81.tar.gz CMake-607e4eb4b4301e98ae4a9afa095d52f2edb3ab81.tar.bz2 |
ENH: Add -DWIN32 for moc on Windows. Final fix for #7465.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindQt4.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index ca2338e..c3e4b25 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -1048,6 +1048,9 @@ IF (QT4_QMAKE_FOUND) GET_DIRECTORY_PROPERTY(_defines DEFINITIONS) SEPARATE_ARGUMENTS(_defines) SET(${_moc_flags} ${${_moc_flags}} ${_defines}) + IF(Q_WS_WIN) + SET(${_moc_flags} ${${_moc_flags}} -DWIN32) + ENDIF(Q_WS_WIN) ENDMACRO(QT4_GET_MOC_FLAGS) |