gnu: rapidjson: Build without -Werror.

* gnu/packages/web.scm (rapidjson)[source]: Add 'snippet'.
This commit is contained in:
Ludovic Courtès 2015-07-18 22:53:50 +02:00
parent 47f315a73f
commit c5c4c4b437
1 changed files with 7 additions and 1 deletions

View File

@ -272,7 +272,13 @@ parse JSON formatted strings back into the C representation of JSON objects.")
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0rl6s0vg5y1dhh9vfl1lqay3sxf69sxjh0czxrjmasn7ng91wwf3")))) "0rl6s0vg5y1dhh9vfl1lqay3sxf69sxjh0czxrjmasn7ng91wwf3"))
(modules '((guix build utils)))
(snippet
;; Building with GCC 4.8 with -Werror was fine, but 4.9.3
;; complains in new ways, so turn of -Werror.
'(substitute* (find-files "." "^CMakeLists\\.txt$")
(("-Werror") "")))))
(build-system cmake-build-system) (build-system cmake-build-system)
(home-page "https://github.com/miloyip/rapidjson") (home-page "https://github.com/miloyip/rapidjson")
(synopsis "JSON parser/generator for C++ with both SAX/DOM style API") (synopsis "JSON parser/generator for C++ with both SAX/DOM style API")