File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ matrix:
7
7
addons :
8
8
apt :
9
9
sources :
10
- - kubuntu-backports
11
10
- ubuntu-toolchain-r-test
11
+ - george-edison55-precise-backports
12
12
packages :
13
13
- cmake
14
+ - cmake-data
14
15
- gcc-4.9
15
16
- g++-4.9
16
17
env : COMPILER=g++-4.9
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 2.8)
2
2
3
3
# Check if a supported compiler is used and add c++11 flag:
4
4
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
5
- # if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
6
- # message(FATAL_ERROR "Need at least gcc 4.9 to compile.")
7
- # endif()
5
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9 )
6
+ message (FATAL_ERROR "Need at least gcc 4.9 to compile." )
7
+ endif ()
8
8
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
9
9
elseif (MSVC )
10
10
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19 )
You can’t perform that action at this time.
0 commit comments