Use the CMake definition of Windows for CMake macros.

Change-Id: I599ddaaf9176f76f2e144c893e607757957dfef2
Reviewed-by: Clinton Stimpson <clinton@elemtech.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Stephen Kelly 2012-02-23 01:05:46 +01:00 committed by Qt by Nokia
parent eec25d44e4
commit 5942556d65

View File

@ -83,7 +83,7 @@ macro(QT5_GET_MOC_FLAGS _moc_flags)
set(${_moc_flags} ${${_moc_flags}} "-D${_current}") set(${_moc_flags} ${${_moc_flags}} "-D${_current}")
endforeach() endforeach()
if(Q_WS_WIN) if(WIN32)
set(${_moc_flags} ${${_moc_flags}} -DWIN32) set(${_moc_flags} ${${_moc_flags}} -DWIN32)
endif() endif()
endmacro() endmacro()