'cmake' 未被识别为内部或外部命令

#39;cmake#39; is not recognised as an internal or external command(cmake 未被识别为内部或外部命令)

本文介绍了'cmake' 未被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Visual Studio 10 中为 esys-particle-win 运行 cmake.

I'm trying to run cmake in Visual Studio 10, for esys-particle-win.

我的 cmake 路径:C:Program Files (x86)CMake 2.8incmake.exe

My path to cmake:C:Program Files (x86)CMake 2.8incmake.exe

我的esys-particle-win路径:C:esys-particle-win runkuildvs2010mkvs10.bat

My path to esys-particle-win:C:esys-particle-win runkuildvs2010mkvs10.bat

我在 Visual Studio 2010 的管理员命令提示符中键入的命令是:

The commands I'm typing in the administrator command prompt of Visual Studio 2010 are:

cd c:esys-particle-win	runkuildvs2010
mkvs10.bat

我收到此错误:

'cmake' is not recognized as an internal or external command

mkvs10.bat的内容:

cmake .. -G "Visual Studio 10" -G "NMake Makefiles"

谁能告诉我我错在哪里?我不懂计算机编程.我按照本网站第 2.3.1 节中提到的说明进行操作:`

could anyone tell me where I am wrong?. I don't know computer programming. I followed the instructions mentioned in section 2.3.1 of this site: `

https://launchpadlibrarian.net/139659869/esys-particle-win-%28v2.1%29-build-instructions.pdf

`任何帮助将不胜感激,谢谢.

` Any help would be greatly appreciated, Thank you.

推荐答案

错误信息表示找不到 cmake.
您可以将其位置添加到您的路径中,如下所示:

The error message means it cannot find cmake.
You can add its location to your path from the prompt like this:

set PATH="C:Program Files (x86)CMake 2.8in";%PATH%

这篇关于'cmake' 未被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:'cmake' 未被识别为内部或外部命令

基础教程推荐