[CMake] /MACHINE:x64

Bill Hoffman bill.hoffman at kitware.com
Fri Dec 28 21:37:54 EST 2007


George Neill wrote:
> Hi CMakers!
> 
> I am trying to compile on a 64 bit windows machine (AMD64).  It seems
> CMake only outputs /MACHINE:X64 for the link flags.   However,
> link.exe reports that flag doesn't exist.   Is this a bug?
> 
> I am using,
> cmake version 2.4-patch 7
> 
> cl.exe
> Microsoft (R) C/C++ Optimizing Compiler Version 14.00.40310.41 for AMD64
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> link.exe
> Microsoft (R) Incremental Linker Version 8.00.40310.39
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> options for /MACHINE: from link.exe  /?
> 
> /MACHINE:{AM33|AMD64|ARM|CEE|EBC|IA64|M32R|MIPS|MIPS16|MIPSFPU|MIPSFPU16|
>                 MIPSR41XX|SH4|SH5|THUMB|X86}
> 
> Let me know if you need more info.
> 
What version of the compiler do you have?
With vs 2005, which was the first one we supported 64 bit builds, I get 
this:

$ link /?
Microsoft (R) Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.


   /MACHINE:{ARM|EBC|IA64|MIPS|MIPS16|MIPSFPU|MIPSFPU16|
                 SH4|THUMB|X64|X86}

Exactly what steps are you taking for running cmake, and installing the 
compiler?

-Bill



More information about the CMake mailing list