Skip to content

Commit 70b795b

Browse files
committed
Merge pull request #133 from cdunn2001/travis-11
upgrade -std=c++ version
2 parents e3f2428 + 2684253 commit 70b795b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ endif( MSVC )
8585

8686
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
8787
# using regular Clang or AppleClang
88-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
88+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
8989
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
9090
# using GCC
91-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
91+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x")
9292
endif()
9393

9494
IF(JSONCPP_WITH_WARNING_AS_ERROR)

0 commit comments

Comments
 (0)