upgrade cmake on Colab
# Delete the default cmake
sudo apt remove cmake
sudo apt purge --auto-remove cmake
# Download the required version from the official website, unzip it, and create a build folder -- i.e change the version if needed and copy paste all these:
version=3.15
build=3
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz
tar -xzvf cmake-$version.$build.tar.gz
cd cmake-$version.$build/
# Compile and install
./bootstrap
make -j4
sudo make install
# Movement path
sudo cp ./bin/cmake /usr/bin/
# Verify the installation result
cmake --version