[CMake] Setting up environment for CMake GUI to use Visual Studio generator

David Doria daviddoria at gmail.com
Fri Sep 14 11:33:45 EDT 2012


When using Visual Studio 10 as the generator from the CMake GUI, it
complains that it can't find 'cl' ("To use the NMake generator, cmake must
be run from a shell that can use the compiler cl from the command line.")
It works if I use:

cmake -G "NMake Makefiles"

from the VS command line, so I'm assuming it is just an environment
problem.

Why doesn't CMake setup the environment automatically when you choose the
generator? Are there any instructions on how to setup the environment for
this? It seems like a super standard thing to do, no?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120914/e46df57e/attachment.htm>


More information about the CMake mailing list