[CMake] generating GNU makefiles for MSVC

Werner Smekal smekal at iap.tuwien.ac.at
Thu Mar 6 02:00:11 EST 2008


Hi Randal,

you could use wgcc a cross-compiler tool

http://interix-wgcc.sourceforge.net/features.html

which should allow to use the msvc compiler in cygwin. But, I have no  
experience with the Cygwin/MSVC/wgcc combination though.

Regards,
Werner


On 06.03.2008, at 00:00, Randal Walser wrote:

>
> Can anyone tell me how I can use cmake to generate GNU makefiles which
> invoke the MSVC compiler?  The Cygwin version of cmake seems to insist
> on gcc.  Likewise, when I specify "Unix Makefiles" to CMakeSetup, it
> resets the compiler to gcc after I've set it to cl.  Perhaps I'm
> overlooking something, but I don't see anything that specifically
> addresses this in the online cmake documentation.
>
> Thanks,
>
> Randal
>
> P.S. I'm not trying to generate Visual Studio projects; only GNU
> makefiles.
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake




More information about the CMake mailing list