mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Working in progress on fixing travis-ci error...
This commit is contained in:
parent
746c259d64
commit
a85d18da91
@ -35,4 +35,4 @@ before_script:
|
||||
|
||||
script:
|
||||
- mkdir build && cd build
|
||||
- cmake -DCMAKE_CXX_COMPILER=$COMPILER .. && make && ctest -V
|
||||
- cmake .. && make && ctest -V
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user