aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAbdul Sami <asami@folio3.com>2018-02-21 12:17:55 +0500
committerGitHub <noreply@github.com>2018-02-21 12:17:55 +0500
commitfe33c5fe9de57b010f5b47c5044d895ec813f92a (patch)
tree011d9e0065f49ea74275d551034beebc9aba6be6 /cmake
parent177108aa8a6e6a0e947c90308f6ebb3d1203bb0c (diff)
downloadprotobuf-fe33c5fe9de57b010f5b47c5044d895ec813f92a.tar.gz
protobuf-fe33c5fe9de57b010f5b47c5044d895ec813f92a.tar.bz2
protobuf-fe33c5fe9de57b010f5b47c5044d895ec813f92a.zip
Added instruction for existing ZLIB configuration
Using two configuration flags `DZLIB_INCLUDE_DIR` and `DZLIB_LIB` we can locate an existing ZLIB on the system
Diffstat (limited to 'cmake')
-rw-r--r--cmake/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/README.md b/cmake/README.md
index 1e7410d8..305ebb88 100644
--- a/cmake/README.md
+++ b/cmake/README.md
@@ -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