Cmake update with Chocolatey?
Hi AppVeyors,
before running cmake I'd like to update it to the latest version, so i ran
before_build:
- choco upgrade cmake
But then trying to run cmake I get:
Get-Command : The term 'cmake' is not recognized as the name of a cmdlet, function, script file, or operable program.
Any ideas?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

1 Posted by bram de jong on 06 Dec, 2016 07:28 AM
Just FYI, this is the output of chocolatey:
```
Upgrading the following packages:
cmake
By upgrading you accept licenses for the packages.
cmake is not installed. Installing...
cmake.install v3.7.0 [Approved]
Downloading cmake.install
from 'http://cmake.org/files/v3.7/cmake-3.7.0-win64-x64.msi'
Progress: 100% - Saving 17.34 MB of 17.39 MB (18186240/18239852)
Download of cmake-3.7.0-win64-x64.msi (17.39 MB) completed.
Hashes match.
Installing cmake.install...
cmake.install has been installed.
The upgrade of cmake.install was successful.
Software installed to 'C:\Program Files\CMake\'
cmake v3.7.0 [Approved]
The upgrade of cmake was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey upgraded 2/2 packages. 0 packages failed.
```
2 Posted by Ilya Finkelshte... on 06 Dec, 2016 09:13 AM
It seems chocolatey removes cmake from existing path and installs it to new one, but does not update
pathvariable. Please add- set path=C:\Program Files\CMake\bin;%path%after- choco upgrade cmake.--ilya.
3 Posted by Bram de Jong on 06 Dec, 2016 09:32 PM
Thanks! That does the trick!!
- Bram
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:10 AM.