[CMake] looking for Visual Studio installation

Bill Hoffman bill.hoffman at kitware.com
Sat Apr 18 19:11:35 EDT 2009


Piotr Dobrogost wrote:
> Hi
> 
> Recent thread titled "CMAKE_MAKE_PROGRAM is not set." shows cmake needs
> some environment variables to find VS command line tools.
> Setting of these variables is done by running a bat file that comes with
> VS. This seems a little fragile.
> 
> Would it be a good idea to make cmake be able to find VS even if these
> environment variables weren't set? Maybe using registry or just looking
> at default installation folder?
> 
That is by design.   Even if CMake did find them, the user would still 
need to set them in order to use the command line tools.  CMake makes 
the simple assumption that the compiler is installed and running in the 
environment CMake is running in.

-Bill



More information about the CMake mailing list