Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How can I get the latest version?
- Well, we can install it by following one of this methods:
- Building and Installing (recommended)
- Uninstall the default version provided by Ubuntu's package manager:
- sudo apt remove cmake
- sudo apt purge --auto-remove cmake
- Go to the official CMake webpage, then download and extract the latest version. Update the version and build variables in the following command to get the desired version:
- version=3.12
- build=0
- mkdir ~/temp
- cd ~/temp
- wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz
- tar -xzvf cmake-$version.$build.tar.gz
- cd cmake-$version.$build/
- Install the extracted source by running:
- ./bootstrap
- make -j4
- sudo make install
- Test your new cmake version.
- $ cmake --version
- Results of cmake --version:
- cmake version 3.12.X
- CMake suite maintained and supported by Kitware (kitware.com/cmake).
- ????
- sudo ln -s /usr/local/bin/cmake /usr/bin/cmake
Advertisement