--- a/CMakeLists.txt	2017-01-16 01:29:40.000000000 +0800
+++ b/CMakeLists.txt	2017-11-17 16:45:51.740256900 +0800
@@ -208,6 +208,10 @@
 elseif(BUILD_SHARED_LIBS AND WIN32)
     # Creates zlib1.dll when building shared library version
     set_target_properties(zlib PROPERTIES SUFFIX "1.dll")
+    if (MSVC)
+        set_target_properties(zlib PROPERTIES ARCHIVE_OUTPUT_NAME "zlib1")
+        set_target_properties(zlib PROPERTIES PDB_NAME "zlib1")
+    endif ()	
 endif()
 
 if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL )

Add patch for CMake builds
zlib: Add patch for CMake builds

This adds a simple patch for the ZLib CMake files so that we can get
zlib1.lib and zlib1.pdb when we use BUILD_SHARED_LIBS, so that it will
match what is going on in the win32/makefile.msc better.
