Skip to content

Instantly share code, notes, and snippets.

@crazytaxii
Last active May 17, 2021 15:48
Show Gist options
  • Save crazytaxii/483b6c2ff69aa259050e14d512d3582b to your computer and use it in GitHub Desktop.
Save crazytaxii/483b6c2ff69aa259050e14d512d3582b to your computer and use it in GitHub Desktop.
Compile and install cmake from source

Install cmake from source

Download cmake from https://cmake.org/download/

$ wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz

Build from source and install

$ tar -xvzf cmake-3.12.3.tar.gz
$ cd cmake-3.12.3
$ ./configure --prefix=/usr
$ make -j$(nproc)
$ make install

Validate installation

$ cmake --version
cmake version 3.12.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment