[CMake] Setting Platform (Win32 or x64) for Visual Studio in CMake

Ludovic Hoyet lhoyet at gmail.com
Thu Oct 27 04:18:59 EDT 2011


Ok, thanks for the answer, I will leave it like this and tell the
developpers to select the correct generator in the list (we use cmake-gui)
if they want the x64 version.

Thanks

2011/10/26 John Drescher <drescherjm at gmail.com>

> On Wed, Oct 26, 2011 at 10:17 AM, Ludovic Hoyet <lhoyet at gmail.com> wrote:
> > Just to know, is there a way to set the platform in the CMakeList? At the
> > moment if I select VS_XXX if creates uses the Win32 platform, and the x64
> is
> > used if I select VS_XXX x64. I would like to set a variable to the
> default
> > platform (no pb with that), and let the users modify if if they really
> want
> > (therefore create a Win32 platform from VS_XXX x64 if that's what they
> want,
> > from setting this variable)...
> > Thanks
> >
>
> You do this by setting the generator. I would not hardwire that in a
> CMakeLists.txt file. Instead if you want create a batch file that
> calls cmake.exe with the appropriate generator..
>



-- 
_______________________________________

Ludovic Hoyet
Research Fellow,
Graphics Vision and Visualisation group,
Trinity College Dublin
http://www.scss.tcd.ie/~hoyetl/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111027/b4b77e02/attachment.htm>


More information about the CMake mailing list