Saturday, October 29, 2022

[SOLVED] 'cmake' is not recognised as an internal or external command

Issue

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.


Solution

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%


Answered By - doctorlove
Answer Checked By - Cary Denson (WPSolving Admin)