CMake:Visual Studio 15 2017找不到任何Visual Studio实例 [英] CMake: Visual Studio 15 2017 could not find any instance of Visual Studio
问题描述
当我尝试安装CMake时,出现错误:
When I am trying to install CMake I get the error:
Visual Studio 15 2017 could not find any instance of Visual Studio.
我正在使用Windows 7和Visual Studio2017.CMakeOutput.log
文件写道:
I am using Windows 7 and Visual Studio 2017. The CMakeOutput.log
file writes:
The system is: Windows - 6.1.7601 - AMD64
有什么想法吗?
推荐答案
我遇到了相同的错误,并执行了以下步骤来解决该问题:
I ran into the same error and performed the following steps to resolve the issue:
- 打开Visual Studio
- 转到工具->获取工具和功能
- 在工作量"标签中,启用使用C ++进行桌面开发"
- 点击右下角的修改
这些步骤导致安装了用于CMake的Visual C ++工具"功能,但是此工作负载中包括的其他可选C ++功能也可能对您尝试执行的操作有所帮助.
These steps resulted in the "Visual C++ tools for CMake" feature being installed, but the other optional C++ features included in this workload may also helpful for what you are trying to do.
在Visual Studio更新程序完成安装后,请尝试重新运行该命令.您可能需要打开一个新的命令窗口.
After the Visual Studio updater finishes installing try re-running the command. You may need to open a new command window.
这篇关于CMake:Visual Studio 15 2017找不到任何Visual Studio实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!