[CMake] Wrong version of cl.exe for x64

tonka tonka tonka3100 at gmail.com
Mon Aug 22 03:27:13 EDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160822/b1938372/attachment.html>


More information about the CMake mailing list