[CMake] generating GNU makefiles for MSVC
Ben Ratzlaff
cmake at daishiva.com
Wed Mar 5 19:01:16 EST 2008
On Wed, Mar 5, 2008 at 4:00 PM, Randal Walser <randal-walser at comcast.net> 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
>
I have not gotten the Cygwin CMake to work well (its been a year since
I last tried) with Visual Studio. I have to download the one from
cmake.org. Then I use the following commands from a shell script
#!/bin/tcsh -f
cmd /C "vcvars32.bat && cmake -G "NMake Makefiles" ."
cmd /C "vcvars32.bat && nmake"
I have vcvars32.bat in my PATH, and Visual Studio 2005 installed.
Hope this helps
More information about the CMake
mailing list