Use the CMake definition of Windows for CMake macros.
authorStephen Kelly <stephen.kelly@kdab.com>
Thu, 23 Feb 2012 00:05:46 +0000 (01:05 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 23 Feb 2012 00:36:14 +0000 (01:36 +0100)
Change-Id: I599ddaaf9176f76f2e144c893e607757957dfef2
Reviewed-by: Clinton Stimpson <clinton@elemtech.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/Qt5CoreMacros.cmake

index abfe49e..4a10fad 100644 (file)
@@ -83,7 +83,7 @@ macro(QT5_GET_MOC_FLAGS _moc_flags)
         set(${_moc_flags} ${${_moc_flags}} "-D${_current}")
     endforeach()
 
-    if(Q_WS_WIN)
+    if(WIN32)
         set(${_moc_flags} ${${_moc_flags}} -DWIN32)
     endif()
 endmacro()