[CMake] How to set up Cygwin + CMake + GNU Makefiles + cl.exe correctly?

Bill Hoffman bill.hoffman at kitware.com
Mon Jun 9 21:48:28 EDT 2008


John Doe wrote:
> I was able to setup the compiler using a file similar to Bill's.
> Unfortunately it appears that cygwin cmake is passing the unix paths
> to cl.exe on my Windows Vista 64 system.
> 
> What command line options for cmake will allow the compiler tests to
> pass.  I tried -DWIN32=1 and -DCMAKE_CL_64=1, but neither seems to
> work.
> 
> Thanks in advance.
> 

You can not use cygwin cmake to build with VS tools.  You can use 
windows cmake and use the cygwin make via "Unix Makefiles".  The cygwin 
built cmake can only handle the cygwin tool chain.

-Bill


More information about the CMake mailing list