<div dir="ltr"><div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">Petr,<br><br></span></div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">Thank you so much.  The following command you suggested fixed the problem, and I was able to run a successful build:<br></span><div><div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif"><br></span><div style="margin-left:40px"><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">cmake
.. -G "Visual Studio 15 2017 Win64"</span><br></div><div style="margin-left:40px"><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif"></span></div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif"><br></span></div><div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">I am grateful for your help.  This may have been a minor item for you, but for me, it was a real stumbling block.<br><br></span></div><div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">By the way, the other alternative you suggested did not work:<br><br></span></div><div><div style="margin-left:40px"><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">cmake .. -A Win64   (or "Win64")</span><br></div><div style="margin-left:40px"><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif"></span></div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif"><br></span></div><div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">The result was:<br><br></span><div style="margin-left:40px"><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">-- Building for: Visual Studio 15 2017</span><br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">-- Running cmake version 3.8.2</span><br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.10.2.windows.1")</span><br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">-- Configuring with MAX_INDEXES = 64U</span><br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">-- The C compiler identification is unknown</span><br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">-- The CXX compiler identification is unknown</span><br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">CMake Error at CMakeLists.txt:126 (PROJECT):</span><br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">  No CMAKE_C_COMPILER could be found.</span><br></div><div style="margin-left:40px"><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif"></span></div><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif"><br></span></div></div><div class="gmail_extra">The funny thing is that the use of the -G flag does not issue a "Building for..." message, but correctly locates the necessary compiler, whereas the -A flag seems to know what target it is building for, but cannot find the compiler!<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thank you again,<br><br></div><div class="gmail_extra">A. M. Sabuncu<br><br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 11, 2017 at 10:12 AM, Petr Kmoch <span dir="ltr"><<a href="mailto:petr.kmoch@gmail.com" target="_blank">petr.kmoch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>when generating a Visual Studio buildsystem with CMake, you can specify the target architecture. If you don't, the default is 32-bit.<br><br></div>To specify the architecture, either put it into the generator name:<br><br></div>  cmake .. -G "Visual Studio 15 2017 Win64" ....<br><br></div>or specify just the architecture using -A:<br><br></div>  cmake .. -A Win64 ....<br><br></div>See description of -G and -A in CMake docs: <a href="https://cmake.org/cmake/help/latest/manual/cmake.1.html" target="_blank">https://cmake.org/cmake/help/<wbr>latest/manual/cmake.1.html</a><br><br></div>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 10 July 2017 at 22:06, A.M. Sabuncu <span dir="ltr"><<a href="mailto:amsabuncu@gmail.com" target="_blank">amsabuncu@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>I am completely new to CMake, and am using to build MySQL 5.7.18 on Windows 10 x64, using the following command:<br><br>cmake .. -DDOWNLOAD_BOOST=1 -DWITH_BOOST="C:\Boost" -DENABLE_DOWNLOADS=1<br><br></div>I have VS 2017 installed, and I am on 64 bit machine, but for some reason, the above command produces the following output:<br><div><br>The CXX compiler identification is MSVC 19.10.25019.0<br>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/To<wbr>ols/MSVC/14.10.25017/bin/HostX<wbr>86/x86/cl.exe<br>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/To<wbr>ols/MSVC/14.10.25017/bin/HostX<wbr>86/x86/cl.exe -- works<br><br></div><div>The correct compiler is in the HostX64/x64 folder.<br></div><div><br></div><div>Thinking that CMake might be looking it up from there, I checked the processor architecture environment variable from the same cmd.exe that I launched the CMake command from, and here's the result:<br><br>PROCESSOR_ARCHITECTURE=AMD64<br><br></div><div>When I follow the above CMake command with the following:<br><br>devenv MySQL.sln /build RelWithDebInfo<br><br></div><div>I get 32-bit results generated, which is not what I want.<br><br></div><div></div><div>How can I get CMake to generate a 64-bit build?<br><br></div><div>Thanks so much.<br></div><div><br></div></div>
<br></div></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/CMak<wbr>e_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/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.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/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/cmake</a><br></blockquote></div><br></div>
</blockquote></div><br></div></div>