From e7acf6176434f7d08138a4bba4478a80e8c6dc57 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 1 Feb 2019 18:08:26 +0100 Subject: [PATCH] [CMAKE] Define some AMD64 symbols for host tools that match what we do for x86. Fixes widl build. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae26227eeb5..756b08f2184 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,8 @@ if(NOT CMAKE_CROSSCOMPILING) if(MSVC) if(ARCH STREQUAL "i386") add_definitions(/D_X86_ /D__i386__ /DWIN32 /D_WINDOWS) + elseif(ARCH STREQUAL "amd64") + add_definitions(-D_AMD64_ -D__x86_64__ /DWIN32 -D_WINDOWS) endif() if(MSVC_VERSION GREATER 1699) add_definitions(/D_ALLOW_KEYWORD_MACROS)