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 Studio 2017.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++ 进行桌面开发"
- 点击右下角的修改
这些步骤导致安装了Visual C++ tools for CMake"功能,但此工作负载中包含的其他可选 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屋!