[CMake] LINK : fatal error LNK1104: cannot open file 'z.lib'

Denis Scherbakov denis_scherbakov at yahoo.com
Mon Jun 8 03:34:32 EDT 2009


> On Sat, Jun 06, 2009 at 07:43:00PM +0200, motes motes
> wrote:
> > Sorry for the confusion. My point was that when I
> downloaded zlib for
> > windows there was no file called 'z.lib'. I would like
> to know if anyone
> > knows where this z.lib file might be found.

Compile it yourself? zLib is far from complex. It is just ~15 files that
do not depend on anything. "zlib.lib" is a static version of this library.

And I would suggest to use FindZLIB script instead of just including
"z" or "zlib" in a list of dependencies.

Denis


      


More information about the CMake mailing list