Follow the CMake update. (#951)

master
Alexander Belyaev 2018-07-26 06:49:29 +02:00 committed by GitHub
parent 97266a69a0
commit 15dece61af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Copyright 2016 The Cartographer Authors
#
@ -17,6 +17,21 @@
set -o errexit
set -o verbose
# Install CMake 3.2 for Ubuntu Trusty and Debian Jessie.
sudo apt-get update
sudo apt-get install lsb-release -y
if [[ "$(lsb_release -sc)" = "trusty" ]]
then
sudo apt-get install cmake3 -y
elif [[ "$(lsb_release -sc)" = "jessie" ]]
then
sudo sh -c "echo 'deb http://ftp.debian.org/debian jessie-backports main' >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get -t jessie-backports install cmake -y
else
sudo apt-get install cmake -y
fi
. /opt/ros/${ROS_DISTRO}/setup.sh
cd catkin_ws