projects
/
platform
/
upstream
/
jsoncpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
658fa37
)
-std=c++11 for gcc builds too
author
Christopher Dunn
<cdunn2001@gmail.com>
Sun, 12 Jul 2015 17:08:34 +0000
(12:08 -0500)
committer
Christopher Dunn
<cdunn2001@gmail.com>
Sun, 12 Jul 2015 17:08:34 +0000
(12:08 -0500)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
e7334d3
..
c5c75d2
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-100,7
+100,7
@@
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wshorten-64-to-32")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++
0x
-Wall -Wextra -pedantic")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++
11
-Wall -Wextra -pedantic")
endif()
IF(JSONCPP_WITH_WARNING_AS_ERROR)