summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQt4.cmake3
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)