浏览代码

Merge pull request #1 from abdul-sami/abdul-sami-patch-1

Added instruction for existing ZLIB configuration
Abdul Sami 7 年之前
父节点
当前提交
ac021a02a6
共有 1 个文件被更改,包括 5 次插入0 次删除
  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
 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