[CMake] Correct way to build for 64 bit?

Stephane Rouleau (Consultant) stephane.rouleau at autodesk.com
Fri Feb 23 17:07:12 EST 2007


That's not what I wanted to read of course.  :)

Has there been any thoughts given to adding support for this?  When
building through a vcproj you can cross-compile win32/x64 on 32 and 64
bits Windows, provided the proper compiler tools have been installed.

Anyway, it's not the end of the world.

Thanks for the quick reply, Bill.

Stephane

-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com] 
Sent: February 23, 2007 5:02 PM
To: Stephane Rouleau (Consultant)
Cc: cmake at cmake.org
Subject: Re: [CMake] Correct way to build for 64 bit?

Stephane Rouleau (Consultant) wrote:
> [snip]
> 2. For the windows cl, a try compile is done to figure out which cl 
> you are using.  For the IDE, there is a separate generator for the 64 
> bit tool because you have to use a different tool.  So, you either run

> vcvars64.bat then cmake for nmake, or you pick the 64 bit IDE build.
> [...]
>  
> I've just started playing with cmake, downloaded the source to go 
> along with the documentation, so I may be reading this wrong...
>  
> It looks like with the current incarnation you cannot generate a 
> single .vcproj with two platforms (one for Win32, one for x64), and so

> we'd have to run cmake twice and specify different output directories 
> for the two solution files.  Am I reading this correctly?
>
That is correct, you have to run CMake twice, once for 32 bit and once
for 64 bit, just use different output directories.  

-Bill




More information about the CMake mailing list