Explorar o código

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
Abdul Sami %!s(int64=7) %!d(string=hai) anos
pai
achega
fe33c5fe9d
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      cmake/README.md

+ 5 - 0
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
 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.
 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.
 Build and testing protobuf as usual.
 
 
 Notes on Compiler Warnings
 Notes on Compiler Warnings