Rate This Document
Findability
Accuracy
Completeness
Readability

Upgrading CMake

The CMake version must be 3.13.0 or later. This document uses 3.18.4 as an example.

  1. Obtain the CMake 3.18.4 source package.
    1
    2
    3
    4
    cd /opt
    wget https://cmake.org/files/v3.18/cmake-3.18.4.tar.gz
    tar -xvf cmake-3.18.4.tar.gz
    cd cmake-3.18.4
    
  2. Perform the compilation and installation.
    1
    2
    3
    ./bootstrap
    make -j `nproc`
    make install
    
  3. Create a soft link.
    1
    2
    rm -rf /usr/bin/cmake
    ln -s /usr/local/bin/cmake /usr/bin/cmake
    
  4. Check the CMake version.
    1
    cmake --version