<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>AFAIK you can set the generator in a CMakeSettings.json file if
you are using MSVC.</p>
<p><a
href="https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=vs-2019">https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=vs-2019</a></p>
<div class="moz-cite-prefix">On 9/17/2019 10:00 AM, Juan Sanchez
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEHOsR3gjhs5gwKrBsVxYu1F-m+brzZU7JBvQDiGsVmk2Nq2qw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello,
<div><br>
</div>
<div>My impression that targeting 32 bit depends on what
generator you are using.</div>
<div><a
href="https://cmake.org/cmake/help/git-stage/generator/Visual%20Studio%2015%202017.html"
moz-do-not-send="true">https://cmake.org/cmake/help/git-stage/generator/Visual%20Studio%2015%202017.html</a><br>
</div>
<div><br>
</div>
<div>It looks like cmake now has:</div>
<div>
<ul class="gmail-simple"
style="color:rgb(68,68,68);font-family:sans-serif;font-size:16px">
<li style="text-align:justify;line-height:20.8px"><code
class="gmail-docutils gmail-literal gmail-notranslate"
style="background-color:rgb(236,240,243);padding:0px
1px;font-size:0.95em"><span class="gmail-pre"
style="hyphens: none;">cmake</span> <span
class="gmail-pre" style="hyphens: none;">-G</span> <span
class="gmail-pre" style="hyphens: none;">"Visual</span> <span
class="gmail-pre" style="hyphens: none;">Studio</span> <span
class="gmail-pre" style="hyphens: none;">15</span> <span
class="gmail-pre" style="hyphens: none;">2017"</span> <span
class="gmail-pre" style="hyphens: none;">-A</span> <span
class="gmail-pre" style="hyphens: none;">Win32</span></code></li>
<li style="text-align:justify;line-height:20.8px"><code
class="gmail-docutils gmail-literal gmail-notranslate"
style="background-color:rgb(236,240,243);padding:0px
1px;font-size:0.95em"><span class="gmail-pre"
style="hyphens: none;">cmake</span> <span
class="gmail-pre" style="hyphens: none;">-G</span> <span
class="gmail-pre" style="hyphens: none;">"Visual</span> <span
class="gmail-pre" style="hyphens: none;">Studio</span> <span
class="gmail-pre" style="hyphens: none;">15</span> <span
class="gmail-pre" style="hyphens: none;">2017"</span> <span
class="gmail-pre" style="hyphens: none;">-A</span> <span
class="gmail-pre" style="hyphens: none;">x64</span></code></li>
</ul>
</div>
<div>It used to be that the default target platform was Win32,
and you had to specify Win64 in the generator string to
target a 64 bit build. For example with Visual Studio 2015</div>
<div><br>
</div>
<div><a
href="https://cmake.org/cmake/help/git-stage/generator/Visual%20Studio%2014%202015.html"
moz-do-not-send="true">https://cmake.org/cmake/help/git-stage/generator/Visual%20Studio%2014%202015.html</a><br>
</div>
<div><br>
</div>
<div>
<p
style="text-align:justify;line-height:20.8px;color:rgb(68,68,68);font-family:sans-serif;font-size:16px">For
compatibility with CMake versions prior to 3.1, one may
specify a target platform name optionally at the end of the
generator name. This is supported only for:</p>
<dl class="gmail-docutils"
style="margin-bottom:15px;color:rgb(68,68,68);font-family:sans-serif;font-size:16px">
<dt><code class="gmail-docutils gmail-literal
gmail-notranslate"
style="background-color:rgb(236,240,243);padding:0px
1px;font-size:0.95em"><span class="gmail-pre"
style="hyphens: none;">Visual</span> <span
class="gmail-pre" style="hyphens: none;">Studio</span> <span
class="gmail-pre" style="hyphens: none;">14</span> <span
class="gmail-pre" style="hyphens: none;">2015</span> <span
class="gmail-pre" style="hyphens: none;">Win64</span></code></dt>
<dd
style="margin-top:3px;margin-bottom:10px;margin-left:30px;text-align:justify;line-height:20.8px">Specify
target platform <code class="gmail-docutils gmail-literal
gmail-notranslate"
style="background-color:rgb(236,240,243);padding:0px
1px;font-size:0.95em"><span class="gmail-pre"
style="hyphens: none;">x64</span></code>.</dd>
<dt><code class="gmail-docutils gmail-literal
gmail-notranslate"
style="background-color:rgb(236,240,243);padding:0px
1px;font-size:0.95em"><span class="gmail-pre"
style="hyphens: none;">Visual</span> <span
class="gmail-pre" style="hyphens: none;">Studio</span> <span
class="gmail-pre" style="hyphens: none;">14</span> <span
class="gmail-pre" style="hyphens: none;">2015</span> <span
class="gmail-pre" style="hyphens: none;">ARM</span></code></dt>
<dd
style="margin-top:3px;margin-bottom:10px;margin-left:30px;text-align:justify;line-height:20.8px">Specify
target platform <code class="gmail-docutils gmail-literal
gmail-notranslate"
style="background-color:rgb(236,240,243);padding:0px
1px;font-size:0.95em"><span class="gmail-pre"
style="hyphens: none;">ARM</span></code>.</dd>
</dl>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Juan</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Sep 17, 2019 at 7:18
AM Joao Pedro Abreu De Souza <<a
href="mailto:jp_abreu@id.uff.br" moz-do-not-send="true">jp_abreu@id.uff.br</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto"><span style="font-family:sans-serif">cl from
visual studio 2017.</span></div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Em ter, 17 de set de 2019
03:26, Stéphane Ancelot <<a
href="mailto:sancelot@numalliance.com" target="_blank"
moz-do-not-send="true">sancelot@numalliance.com</a>>
escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hi,</p>
<p>That first depends on which compiler you will use ?</p>
<p>Regards,</p>
<p>S.Ancelot<br>
</p>
<div>Le 16/09/2019 à 22:32, Joao Pedro Abreu De Souza a
écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi guys. I am trying to generate,using
cmake, a executable with target Windows 32 bits
using Windows 64 bits, but cannot find a standard
toolchain file (I find to Linux, to Android, but
can't find to Windows 32 bits) to build. Do you know
some repository of toolchain files that has Windows
32 bits from Windows 64 bits? Or maybe someone has a
standard toolchain file to this type of thing.
<div><br>
</div>
<div>Thanks in advance.</div>
</div>
<br>
<fieldset></fieldset>
</blockquote>
</div>
</blockquote>
</div>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a
href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer"
target="_blank" moz-do-not-send="true">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake
community. For more information on each offering, please
visit:<br>
<br>
CMake Support: <a
href="http://cmake.org/cmake/help/support.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a
href="http://cmake.org/cmake/help/consulting.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a
href="http://cmake.org/cmake/help/training.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
</body>
</html>