ENH: Add -DWIN32 for moc on Windows. Final fix for #7465.
This commit is contained in:
parent
81f89284c6
commit
607e4eb4b4
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue