<div dir="ltr">Thanks, I'll check it out.<br><div><br></div><div>The toolchain file, as is, can generate ninja builds that can be used to generate a executable, but when I execute them, he say : <br><br>```<br>-- The C compiler identification is unknown<br>-- The CXX compiler identification is unknown<br>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe<br>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe -- broken<br>CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):<br> The C compiler<br><br> "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe"<br><br> is not able to compile a simple test program.<br><br> It fails with the following output:<br><br> Change Dir: C:/Users/jpabreu/Desktop/testCMAKE/build_Win32_normal/CMakeFiles/CMakeTmp<br><br> Run Build Command(s):C:/ProgramData/chocolatey/bin/ninja.exe cmTC_0dfb4 && [1/2] Building C object CMakeFiles\cmTC_0dfb4.dir\testCCompiler.c.obj<br> FAILED: CMakeFiles/cmTC_0dfb4.dir/testCCompiler.c.obj<br> "C:\PROGRA~2\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe" -o CMakeFiles\cmTC_0dfb4.dir\testCCompiler.c.obj -c testCCompiler.c<br> ninja: build stopped: subcommand failed.<br><br><br><br><br><br> CMake will not be able to correctly generate this project.<br>Call Stack (most recent call first):<br> CMakeLists.txt:2 (project)<br>```</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter, 17 de set de 2019 às 16:02, Juan Sanchez <<a href="mailto:juan.e.sanchez@gmail.com">juan.e.sanchez@gmail.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 dir="ltr">From my brief research, it looks like the Microsoft version of CMake may have Ninja support.<div><br></div><div><a href="https://devblogs.microsoft.com/cppblog/cmake-support-in-visual-studio-whats-new-in-2017-15-3-update/" target="_blank">https://devblogs.microsoft.com/cppblog/cmake-support-in-visual-studio-whats-new-in-2017-15-3-update/</a> <br></div><div><br></div><div>Regards,</div><div><br></div><div>Juan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 17, 2019 at 1:36 PM Joao Pedro Abreu De Souza <<a href="mailto:jp_abreu@id.uff.br" target="_blank">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="ltr">So, only the Visual Studio generator use the Arch option? I try generate ninja build, but cmake(3.15.3) and the answer was <div><br></div><div>```<br>$ cmake -B build -S . -G "Ninja" -A Win32<br>CMake Error at CMakeLists.txt:2 (project):<br> Generator<br><br> Ninja<br><br> does not support platform specification, but platform<br><br> Win32<br><br> was specified.<br><br><br>CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage<br>CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage<br>-- Configuring incomplete, errors occurred!<br>See also "C:/Users/jpabreu/Desktop/testCMAKE/build/CMakeFiles/CMakeOutput.log".<br>```</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter, 17 de set de 2019 às 14:00, Juan Sanchez <<a href="mailto:juan.e.sanchez@gmail.com" target="_blank">juan.e.sanchez@gmail.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 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" target="_blank">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 style="color:rgb(68,68,68);font-family:sans-serif;font-size:16px"><li style="text-align:justify;line-height:20.8px"><code style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span>cmake</span> <span>-G</span> <span>"Visual</span> <span>Studio</span> <span>15</span> <span>2017"</span> <span>-A</span> <span>Win32</span></code></li><li style="text-align:justify;line-height:20.8px"><code style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span>cmake</span> <span>-G</span> <span>"Visual</span> <span>Studio</span> <span>15</span> <span>2017"</span> <span>-A</span> <span>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" target="_blank">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 style="margin-bottom:15px;color:rgb(68,68,68);font-family:sans-serif;font-size:16px"><dt><code style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span>Visual</span> <span>Studio</span> <span>14</span> <span>2015</span> <span>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 style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span>x64</span></code>.</dd><dt><code style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span>Visual</span> <span>Studio</span> <span>14</span> <span>2015</span> <span>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 style="background-color:rgb(236,240,243);padding:0px 1px;font-size:0.95em"><span>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" target="_blank">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">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">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">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">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">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">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">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">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>