From fe33c5fe9de57b010f5b47c5044d895ec813f92a Mon Sep 17 00:00:00 2001 From: Abdul Sami Date: Wed, 21 Feb 2018 12:17:55 +0500 Subject: 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 --- cmake/README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake') 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= + -DZLIB_LIB= + Build and testing protobuf as usual. Notes on Compiler Warnings -- cgit v1.2.3