Last active
April 8, 2024 00:56
-
-
Save OPerepadia/eba3beb62b6b127badd7b74fd62ae711 to your computer and use it in GitHub Desktop.
Update cmake on Ubuntu 16.04/18.04/20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Uninstall the default version of cmake | |
sudo apt remove cmake | |
sudo apt clean all | |
# Add Kitware apt repository | |
sudo apt install wget | |
wget -qO - https://apt.kitware.com/kitware-archive.sh | sudo bash | |
# Install cmake from Kitware repository | |
sudo apt update | |
sudo apt install cmake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment