From 588c5e4a035f11bcb934d64813603ffdc8d270ed Mon Sep 17 00:00:00 2001 From: Daniel Albers Date: Mon, 28 Jul 2014 16:29:37 +0200 Subject: [PATCH] Travis: Update gcc to 4.7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes Travis builds currently failing with: cc1plus: error: unrecognized command line option ‘-std=c++11’ --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3eac5a59..b99c62bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,12 @@ compiler: - clang before_install: - - echo "yes" | sudo add-apt-repository ppa:kalakris/cmake + - sudo add-apt-repository ppa:kalakris/cmake/test -y - sudo apt-get update -qq - sudo apt-get install cmake + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo apt-get update -qq + - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.7; fi + - if [ "$CXX" = "g++" ]; then export CXX="g++-4.7" CC="gcc-4.7"; fi script: mkdir build && cd build && cmake ../ && make -- 2.20.1