[CMake] Wrong version of cl.exe for x64

Kristian kristianonline28 at gmail.com
Mon Aug 22 03:50:22 EDT 2016


Did you already tried to use the "Visual Studio 10 2010 Win64" generator?

*
https://cmake.org/cmake/help/v3.6/generator/Visual%20Studio%2010%202010.html
* https://cmake.org/cmake/help/v3.6/manual/cmake-generators.7.html

2016-08-22 9:27 GMT+02:00 tonka tonka <tonka3100 at gmail.com>:

> Hey,
>
> I have recently switched to cmake (instead of plain visual studio).
> Now i discovered a problem.cmake choose the wrong cl.exe for my x64
> project.
> Cmake choose bin/x86_amd64/cl.exe which is the “x64 Cross Tools“. This
> create x64 binaries, but with my big project I reach a out of memory linker
> error, because the cl.exe is wrong (this cl.exe is an 32bit compiler which
> can create x64 binaries).
> Cmake should choose bin/amd64/cl.exe to use a “real“ x64 compiler.
>
> Does anybody know how I can tell cmake to do that?
>
> Compiler: visual studio 2010 sp1
> OS: win 7 x64
> Cmake: 3.4.3
>
> Greetings
> Tonka
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160822/8fdc9d74/attachment-0001.html>


More information about the CMake mailing list