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.<div><br></div><div>Thanks<br><br><div class="gmail_quote">
2011/10/26 John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, Oct 26, 2011 at 10:17 AM, Ludovic Hoyet <<a href="mailto:lhoyet@gmail.com">lhoyet@gmail.com</a>> wrote:<br>
> Just to know, is there a way to set the platform in the CMakeList? At the<br>
> moment if I select VS_XXX if creates uses the Win32 platform, and the x64 is<br>
> used if I select VS_XXX x64. I would like to set a variable to the default<br>
> platform (no pb with that), and let the users modify if if they really want<br>
> (therefore create a Win32 platform from VS_XXX x64 if that's what they want,<br>
> from setting this variable)...<br>
> Thanks<br>
><br>
<br>
</div>You do this by setting the generator. I would not hardwire that in a<br>
CMakeLists.txt file. Instead if you want create a batch file that<br>
calls cmake.exe with the appropriate generator..<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>_______________________________________<br><br>Ludovic Hoyet<br>Research Fellow, <div><span style="font-family:Tahoma, Helvetica, sans-serif;font-size:13px;line-height:16px;background-color:rgb(255, 255, 255)">Graphics Vision and Visualisation group,</span><br>
Trinity College Dublin<br><a href="http://www.scss.tcd.ie/~hoyetl/" target="_blank">http://www.scss.tcd.ie/~hoyetl/</a></div><br>
</div>