从 Visual Studio 2022 下载后,cmake 位于哪里

2 cmake

从 Visual Studio 2022 下载 cmake 时它位于哪里,因为我想将其添加到环境变量中

Ale*_*ing 8

启动 Native Tools 命令提示符(可通过“开始”菜单访问)。从这里你可以运行:

> where cmake
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe
Run Code Online (Sandbox Code Playgroud)

以确定位置。我预计 VS2022 的路径将非常相似。


然而,与 Visual Studio 一起分发的 CMake 版本有来自 Microsoft 的补丁。您应该安装上游 CMake 以在 Native Tools Command Prompt 之外使用,或者仅使用 Native Tools Command Prompt