Skip to content

Commit

Permalink
Merge pull request protocolbuffers#4324 from abdul-sami/master
Browse files Browse the repository at this point in the history
 Added instruction for existing ZLIB configuration
  • Loading branch information
xfxyjwf authored Feb 22, 2018
2 parents 177108a + ac021a0 commit a6037c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ further disable the option `-Dprotobuf_MSVC_STATIC_RUNTIME=OFF`.
If it reports NOTFOUND for zlib_include or zlib_lib, you might haven't put
the headers or the .lib file in the right directory.

If you already have ZLIB library and headers at some other location on your system then alternatively you can define following configuration flags to locate them:

-DZLIB_INCLUDE_DIR=<path to dir containing zlib headers>
-DZLIB_LIB=<path to dir containing zlib>

Build and testing protobuf as usual.

Notes on Compiler Warnings
Expand Down

0 comments on commit a6037c5

Please sign in to comment.