Skip to content

Commit

Permalink
Revert "Do not hardcode c++11 for unix builds"
Browse files Browse the repository at this point in the history
This reverts commit 4348793.
It is needed for Travis CI based on Ubuntu Trusty.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jun 1, 2019
1 parent 359f3c5 commit b9a31ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ if (CYGWIN)
endif()

if (UNIX)
# Hack for old cmake / compiler in Ubuntu Trusty.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11")

if (NOT ANDROID)
set(LIB_pthread pthread)
endif()
Expand Down

0 comments on commit b9a31ec

Please sign in to comment.