[CMake] Cross compiling for Windows x64/amd64 on 32-bit Windows

John Drescher drescherjm at gmail.com
Mon Oct 1 16:45:41 EDT 2012


On Mon, Oct 1, 2012 at 4:35 PM, Arindam Mukherjee
<arindam.mukerjee at gmail.com> wrote:
> Hi,
>
> I have a Windows XP build setup with Visual Studio 2008 SP1 and
> Windows SDK 6. I have set up a CMake project for a source base that is
> built on Linux, Solaris, AIX and Windows. So far I have managed to get
> the Windows 32-bit build going but cannot make the x64 cross-compile
> work.
>
> It seems that CMake generates 32-bit builds even when I initialize the
> 64-bit build system (vcvarsall.bat x64). What is the correct way to
> set such a build up.
>

I do not believe Visual Studio will build x64 targets on 32 bit
windows. The first issue would be installing the x64 compiler. However
I could be wrong.

John


More information about the CMake mailing list