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

Robert Maynard robert.maynard at kitware.com
Mon Mar 27 09:35:32 EDT 2017


I just installed the Visual Studio Community 2017 edition into my D
drive and verified that both the 32bit and 64bit compiler was found
correctly.

The C compiler identification is MSVC 19.10.25017.0
The CXX compiler identification is MSVC 19.10.25017.0
Check for working C compiler:
D:/Work/VisualStudo2017/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe
Check for working C compiler:
D:/Work/VisualStudo2017/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe
-- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler:
D:/Work/VisualStudo2017/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe
Check for working CXX compiler:
D:/Work/VisualStudo2017/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe
-- works


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?


On Mon, Mar 27, 2017 at 9:12 AM, HarpyWar <harpywar at gmail.com> wrote:
> 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
>
>


More information about the CMake mailing list