ENH: Add -DWIN32 for moc on Windows. Final fix for #7465.

This commit is contained in:
Clinton Stimpson 2008-08-26 11:22:27 -04:00
parent 81f89284c6
commit 607e4eb4b4
1 changed files with 3 additions and 0 deletions

View File

@ -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)