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:
parent
eec25d44e4
commit
5942556d65
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user