cmake/zlib

Brad King brad.king at kitware.com
Thu Feb 9 17:26:42 CET 2006


Peter Kümmel wrote:
> Hi Brad,
> 
> could you maybe add the windows names of the libraries
> in the FindXXX.cmake files?
> 
> Here are some names from gnuwin32.sf.net
> 
> zlib.lib.
> 
> and some begins with lib:
> libssl.lib
> libpng.lib
> libungif.lib
> 
> Just a proposal.

Yes, no problem.  I'll add them.

The reason you had problems with zlib is because the newer form of the 
FIND_LIBRARY command that allows multiple names needs to be used.  This:

FIND_LIBRARY(ZLIB_LIBRARY z
   /usr/lib
   /usr/local/lib
)

should be

FIND_LIBRARY(ZLIB_LIBRARY
   NAMES z zlib
   PATHS /usr/lib /usr/local/lib
)

and since the FIND_LIBRARY command uses CMAKE_LIBRARY_PATH automatically 
your problem should be solved.

-Brad


More information about the Kde-buildsystem mailing list