Upgrading CMake
The CMake version must be 3.13.0 or later. This document uses 3.18.4 as an example.
- 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
- Perform the compilation and installation.
1 2 3
./bootstrap make -j `nproc` make install
- Create a soft link.
1 2
rm -rf /usr/bin/cmake ln -s /usr/local/bin/cmake /usr/bin/cmake
- Check the CMake version.
1cmake --version
Parent topic: Configuring the Compilation Environment