Working in progress on fixing travis-ci error...

This commit is contained in:
yhirose 2017-06-19 13:33:40 -04:00
parent 746c259d64
commit a85d18da91
2 changed files with 6 additions and 6 deletions

View File

@ -35,4 +35,4 @@ before_script:
script:
- mkdir build && cd build
- cmake -DCMAKE_CXX_COMPILER=$COMPILER .. && make && ctest -V
- cmake .. && make && ctest -V

View File

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