Installing CMake
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the CMake installation package.
tar -zxvf cmake-3.16.5.tar.gz
- Go to the directory generated after the decompression.
cd cmake-3.16.5
- Perform the configuration.
export CC=`which clang` export CXX=`which clang++` export FC=`which flang` ./bootstrap --prefix=/path/to/CMAKE
Output for the start:

Output for the end:

- Perform the installation.
make make install

- Set the CMake environment variables.
export PATH=/path/to/CMAKE/bin:$PATH
- Check the version after the installation.
cmake --version

Parent topic: Configuring the Compilation Environment