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

HarpyWar harpywar at gmail.com
Sun Mar 26 05:01:33 EDT 2017


*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.58Copyright (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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170326/831748de/attachment.html>


More information about the CMake mailing list