Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xuyang2/6569bd9a19d9c762794dd8fbb3b3bc3e to your computer and use it in GitHub Desktop.
Save xuyang2/6569bd9a19d9c762794dd8fbb3b3bc3e to your computer and use it in GitHub Desktop.
Install CMake on CentOS 7.

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

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

Compile from source and install

tar zxvf cmake-3.*
cd cmake-3.*
./bootstrap --prefix=/usr/local
make -j$(nproc)
make install

Validate installation

cmake --version

cmake version *.*.*
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