[CMake] Using the Microsoft compiler with "Unix Makefiles"

Bill Hoffman bill.hoffman at kitware.com
Tue Jun 19 08:33:08 EDT 2012


On 6/19/2012 6:49 AM, Michael Jackson wrote:
> It can be done as Bill Hoffman seems to do this all the time. Let's wait to see what he says. I do know that it involves a lot of setup.

Yes, this is my preferred generator.  I used cygwin gmake, but this one:

http://www.cmake.org/files/cygwin/make.exe-cygwin1.7

The one that comes with cygwin can not handle c:/ paths that VS requires.

You have to make sure the environment is setup for cl to work.  If you 
open a cl windows shell and dump the env you can see all the stuff that 
needs to be set.  I convert all that and put it in my .bashrc.

-Bill


-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573


More information about the CMake mailing list