Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 21b7721

Browse files
authored
Merge pull request #1099 from crd477/ubuntu-cmake
minor change for cmake selection in ubuntu
2 parents 97f83d4 + 94f98c8 commit 21b7721

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

script/installation/packages.sh

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,13 @@ if [ "$DISTRO" = "UBUNTU" ]; then
4848
fi
4949
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
5050
sudo apt-get update -qq
51+
CMAKE_NAME="cmake3"
52+
FORCE_Y="--force-yes"
53+
else
54+
CMAKE_NAME="cmake"
55+
FORCE_Y=""
5156
fi
5257

53-
# Fix for cmake3 name change in Ubuntu 15.x and 16.x plus --force-yes deprecation
54-
CMAKE_NAME="cmake3"
55-
FORCE_Y="--force-yes"
56-
MAJOR_VER=$(echo "$DISTRO_VER" | cut -d '.' -f 1)
57-
for version in "15" "16"
58-
do
59-
if [ "$MAJOR_VER" = "$version" ]
60-
then
61-
FORCE_Y=""
62-
CMAKE_NAME="cmake"
63-
break
64-
fi
65-
done
66-
6758
sudo apt-get -qq $FORCE_Y --ignore-missing -y install \
6859
git \
6960
g++ \

0 commit comments

Comments
 (0)