Skip to content

Commit

Permalink
Do not apt remove cmake (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktgw0316 authored May 28, 2021
1 parent 369a92c commit 3d4b5cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ sudo apt-get -y install build-essential
sudo apt-get -y install gcc-8 g++-8

# Ubuntu 16.04 does not have newest CMake so need to build it manually
if [[ `lsb_release -rs` != "18.04" ]]; then
sudo apt-get --purge remove cmake-qt-gui -y
sudo apt-get --purge remove cmake -y
if [[ `lsb_release -rs` < "18.04" ]]; then
mkdir -p cmake_tmp
cd cmake_tmp
wget https://cmake.org/files/v3.10/cmake-3.10.1.tar.gz
Expand All @@ -50,6 +48,7 @@ if [[ `lsb_release -rs` != "18.04" ]]; then
sudo make install
cd ../..
sudo rm -r cmake_tmp
export PATH=/usr/local/bin:$PATH
else
sudo apt-get -y install cmake
fi
Expand Down

0 comments on commit 3d4b5cf

Please sign in to comment.