Skip to content

Commit

Permalink
use c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
zddhub committed Apr 10, 2017
1 parent 8d47b17 commit f017ac2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo add-apt-repository --yes ppa:lttng/daily
- sudo add-apt-repository ppa:amarburg/opencv3 -y # opencv3 ppa
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo add-apt-repository ppa:boost-latest -y
- sudo apt-get update -qq
- sudo apt-get install -qq libopencv3-dev
- sudo apt-get install -qq libboost-all-dev
- sudo apt-get install g++-4.8 -y
- export CXX="g++-4.8"
script:
- mkdir release && cd release
- cmake ..
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ endif()

set(HAVE_LIBPTHREAD YES)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
add_definitions(-std=c++11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

include_directories(/usr/local/include)
include_directories(..)
Expand Down

0 comments on commit f017ac2

Please sign in to comment.