madler/zlib — pull request #20 by pzychotic (2012-06-06 23:57:22+00:00)
Title: Fixed build of static lib for MSVC 2010 x64

Using a CMake generated project for MSVC 2010 x64 results in an error trying to build the static lib. This seems to a bug in MSVC when the static lib contains an .rc file.

More details here: http://public.kitware.com/Bug/view.php?id=11240

Since the .rc file is only used to set file infos that are only relevant to the DLL, I changed the CMakeLists.txt, so that the .rc file is only added to the shared lib and not the static lib. This would also be consistent with the Makefiles from the win32 directory.