Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake command is not recognized

Tags:

windows

cmake

I have installed CMake and cmake.exe is in C:\Program Files (x86)\CMake\bin But when I run call cmake %CMAKE_BUILD_OPTIONS% through a bat file I am getting an error message

'cmake' is not recognized as an internal or external command, operable program or batch file.

Should I set this path in environment variable?

like image 762
Nic Avatar asked Jul 28 '15 11:07

Nic


2 Answers

It resolved after adding C:\Program Files (x86)\CMake\bin to environment variable PATH.

like image 104
Nic Avatar answered Sep 19 '22 09:09

Nic


Was able to resolve the issue by installing Chocolatey (on Windows 10) and running choco install cmake

like image 27
monkrus Avatar answered Sep 18 '22 09:09

monkrus