C++ – Cmake is not recognized as an internal or external command. How to check the version of cmake installed using windows command prompt

c++, cmake, command-line, windows

How to check whether the cmake is installed in my windows 8.1 PC using command line. I am getting the error when I am running the windows batch file
"'cmake' is not recognized as an internal or external command, operable program or batch file."
Please help for this .
Thanks in advance

Best Solution

To check if cmake is installed in your windows PC using command line, try to run the cmake command in a prompt: if you have the error you quoted in your question, it's not installed. Note that it doesn't mean cmake isn't effectively installed. It may be installed, but the path to the cmake executable may not have been added to your PATH environment variable: the command line will not be able to find the executable.