Working in progress on fixing travis-ci error.

This commit is contained in:
yhirose 2017-06-19 14:04:44 -04:00
parent a85d18da91
commit 41e3360483
2 changed files with 5 additions and 4 deletions

View File

@ -7,10 +7,11 @@ matrix:
addons: addons:
apt: apt:
sources: sources:
- kubuntu-backports
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages: packages:
- cmake - cmake
- cmake-data
- gcc-4.9 - gcc-4.9
- g++-4.9 - g++-4.9
env: COMPILER=g++-4.9 env: COMPILER=g++-4.9

View File

@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 2.8)
# Check if a supported compiler is used and add c++11 flag: # Check if a supported compiler is used and add c++11 flag:
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9) if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
# message(FATAL_ERROR "Need at least gcc 4.9 to compile.") message(FATAL_ERROR "Need at least gcc 4.9 to compile.")
# endif() endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif(MSVC) elseif(MSVC)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19) if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19)