[CMake] Correct way to build for 64 bit?

Stephane Rouleau (Consultant) stephane.rouleau at autodesk.com
Tue Feb 27 10:02:45 EST 2007


Bill,

Yup, with VS2005 you can now have multiple target platforms in a single
vcproj, and this can be run on Win32 and Win64.  From a single project,
you can target, for instance, Windows Mobile 5, Win32 and x64, provided
you have all the proper tools and SDKs installed.

When you look at your project properties from the IDE, there's a button
called "Configuration Manager..."

>From there, you can add new configurations (debug / release) and/or new
platforms (win32/x64/smart devices).

In the vcproj it will end up looking like this:

<VisualStudioProject
  ...
  <Platforms>
	<Platform Name="Win32" />
	<Platform Name="x64" />  
  </Platforms>
  <Configurations>
     <Configuration Name="Debug|Win32" ...>
	...
     </Configuration>
     <Configuration Name="Debug|x64" ...>
	...
     </Configuration>  
  </Configurations>
</VisualStudioProject>

Hope this helps,

Steph

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

Stephane Rouleau (Consultant) wrote:
> 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.
>   
Sounds interesting I did not know that was possible.  Do you have
instructions on how to set something like that up?  

-Bill




More information about the CMake mailing list