<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">https://cmake.org/cmake/help/latest/manual/cmake.1.html</a><br><br></div>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<wbr>Tools/MSVC/14.10.25017/bin/<wbr>HostX86/x86/cl.exe<br>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/<wbr>Tools/MSVC/14.10.25017/bin/<wbr>HostX86/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>--<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/<wbr>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/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>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/<wbr>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/<wbr>opensource/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/<wbr>mailman/listinfo/cmake</a><br></blockquote></div><br></div>