[CMAKE] Define some AMD64 symbols for host tools that match what we do for x86.

Fixes widl build.
This commit is contained in:
Thomas Faber 2019-02-01 18:08:26 +01:00
parent 8077da05e0
commit e7acf61764
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -84,6 +84,8 @@ if(NOT CMAKE_CROSSCOMPILING)
if(MSVC) if(MSVC)
if(ARCH STREQUAL "i386") if(ARCH STREQUAL "i386")
add_definitions(/D_X86_ /D__i386__ /DWIN32 /D_WINDOWS) add_definitions(/D_X86_ /D__i386__ /DWIN32 /D_WINDOWS)
elseif(ARCH STREQUAL "amd64")
add_definitions(-D_AMD64_ -D__x86_64__ /DWIN32 -D_WINDOWS)
endif() endif()
if(MSVC_VERSION GREATER 1699) if(MSVC_VERSION GREATER 1699)
add_definitions(/D_ALLOW_KEYWORD_MACROS) add_definitions(/D_ALLOW_KEYWORD_MACROS)