CMake command is not recognized

人走茶凉 提交于 2020-07-15 17:09:52

问题


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?


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/31675150/cmake-command-is-not-recognized

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!