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:
48bfe91
)
Enable -Werror with JSONCPP_WITH_WARNING_AS_ERROR
author
Jörg Krause
<joerg.krause@embedded.rocks>
Thu, 29 Oct 2015 08:19:41 +0000
(09:19 +0100)
committer
Jörg Krause
<joerg.krause@embedded.rocks>
Thu, 29 Oct 2015 08:21:01 +0000
(09:21 +0100)
Commit
912d55094d2f3b777bcb48a76c2ed32447c7795e
disabled '-Werror'. Enable it
if jsoncpp is build with JSONCPP_WITH_WARNING_AS_ERROR=ON.
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
9c3a4e3
..
0289704
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-85,6
+85,7
@@
macro(UseCompilationWarningAsError)
# warnings when compiled in release configuration.
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /WX ")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
if (JSONCPP_WITH_STRICT_ISO)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic-errors")
endif ()