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

HarpyWar harpywar at gmail.com
Mon Mar 27 09:12:00 EDT 2017


The latest version cmake-3.8.0-rc3-win32-x86.zip

On Mon, Mar 27, 2017 at 4:04 PM, Robert Maynard <robert.maynard at kitware.com>
wrote:

> Hi,
>
> Which version of CMake are you using?
>
> On Sun, Mar 26, 2017 at 5:01 AM, HarpyWar <harpywar at gmail.com> wrote:
> > CMake could not find Visual Studio 2017 and stops with error:
> > -- The CXX compiler identification is unknown
> >
> >
> > Initially Visual Studio Community was installed in path:
> > E:\Microsoft
> > But actually part of files are also located in default installation path:
> >
> > C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
> >
> > The files tree from both these directories
> > https://forums.pvpgn.pro/misc.php?action=pan_download&item=17&download=1
> >
> >
> > Output from vswhere.exe shows that Visual Studio is installed on disk C:\
> > (https://github.com/Microsoft/vswhere)
> >
> > Visual Studio Locator, version 1.0.58
> > Copyright (C) Microsoft Corporation. All rights reserved.
> >
> > instanceId: 3a7dda28
> > installDate: 23.11.2016
> > installationName: VisualStudio/15.0.0+26228.9
> > installationPath: C:\Program Files (x86)\Microsoft Visual
> > Studio\2017\Community
> > installationVersion: 15.0.26228.9
> > displayName: Visual Studio Community 2017
> > description: Бесплатная полнофункциональная интегрированная среда
> разработки
> > для
> >  учащихся, разработчиков решений с открытым кодом и индивидуальных
> > разработчиков
> >
> > enginePath: C:\Program Files (x86)\Microsoft Visual
> > Studio\Installer\resources\a
> > pp\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service
> > channelId: VisualStudio.15.Release
> > channelPath:
> > C:\Users\User\AppData\Local\Microsoft\VisualStudio\Packages\_Channe
> > ls\4CB340F5\catalog.json
> > channelUri: https://aka.ms/vs/15/release/channel
> >
> >
> >
> >
> > --
> >
> > Powered by www.kitware.com
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Kitware offers various services to support the CMake community. For more
> > information on each offering, please visit:
> >
> > CMake Support: http://cmake.org/cmake/help/support.html
> > CMake Consulting: http://cmake.org/cmake/help/consulting.html
> > CMake Training Courses: http://cmake.org/cmake/help/training.html
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170327/8df32c38/attachment.html>


More information about the CMake mailing list