一 下載軟件包
# wget https://github.com/Kitware/CMake/releases/download/v3.21.3/cmake-3.21.3.tar.gz
二 解壓並安裝
# tar xf cmake-3.21.3.tar.gz
# cd cmake-3.21.3
# ./bootstrap --prefix=/usr/local/cmake-3.21.3
# make -j 8
# make install
三 驗證版本
# /usr/local/cmake-3.21.3/bin/cmake --version cmake version 3.21.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
