Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luckmoon/b7dc6b8cc2a762d49dfcb4cc609649bb to your computer and use it in GitHub Desktop.
Save luckmoon/b7dc6b8cc2a762d49dfcb4cc609649bb to your computer and use it in GitHub Desktop.
Install CMake on CentOS 7.
wget https://cmake.org/files/v3.11/cmake-3.11.0.tar.gz
  • Compile from source and install
tar zxvf cmake-3.11.0.tar.gz && cd cmake-3.11.0
./bootstrap --prefix=/usr/local
make -j$(nproc)
make install
  • Validate installation
cmake --version

cmake version 3.11.0
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