[CMake] Correct way to build for 64 bit?
Bill Hoffman
bill.hoffman at kitware.com
Fri Feb 23 17:01:34 EST 2007
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