Run cmake-gui FROM the target environment, just like you run cmake... i.e. : type "cmake-gui" in the cmd prompt that has your stuff set up in it. Don't just launch it from a short-cut unless you're using the "Visual Studio *" generators. Those do not need any special environment. Many of the makefile ones do.
On Fri, Sep 14, 2012 at 11:33 AM, David Doria <[email protected]> wrote: > 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 > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
