[CMake] Visual Studio 2017 could not be found if installed in non-default location

Brad King brad.king at kitware.com
Mon Mar 27 09:47:16 EDT 2017


On 03/27/2017 09:35 AM, Robert Maynard wrote:
> So the real question is how did your compiler end up in the C drive
> and not the alternative drive like mine. Do you run the visual studio
> installer multiple times?

Did you have any of the VS 15 preview versions installed previously?

For reference, VS 2017 does not have any registry entries.  Instead
the VS installer tool provides a COM interface that applications must
use to ask for the location(s) of VS installations.  We do this in
cmVSSetupHelper [1].

-Brad


[1] https://gitlab.kitware.com/cmake/cmake/blob/v3.8.0-rc3/Source/cmVSSetupHelper.cxx



More information about the CMake mailing list