Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

My path to esys-particle-win:C:\esys-particle-win\trunk\buildvs2010\mkvs10.bat

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

cd c:\esys-particle-win\trunk\buildvs2010 mkvs10.bat 

and I'm getting this error:

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

contents of mkvs10.bat:

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

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.

like image 376
Ryan White Avatar asked Oct 04 '13 07:10

Ryan White


People also ask

How do I know if Cmake is installed on Linux?

You can check your CMake version by using the command cmake --version. cmake version 3.11.


2 Answers

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.8\bin\";%PATH% 
like image 145
doctorlove Avatar answered Sep 29 '22 09:09

doctorlove


As @doctorlove mentioned above, the error message means it cannont find Cmake.

Note that quotes aren't needed in PATH environmental variables on Windows. So the above example on Windows would look like:

set PATH=C:\Program Files (x86)\CMake 2.8\bin\;%PATH%  

I had the same issue, and resolved it in this post.

like image 21
Dave Voyles Avatar answered Sep 29 '22 09:09

Dave Voyles