ZLIB not being checked

Peter Kümmel syntheticpp at gmx.net
Wed Feb 15 23:26:43 CET 2006


Alexander Neundorf wrote:
> On Wednesday 15 February 2006 19:51, David Faure wrote:
>> On Wednesday 15 February 2006 15:21, Paulo Jorge Guedes wrote:
>>> Well, the patch goes attached.
>>> Of ok I can commit.
>>>
>>> Paulo
>>>
>>>> -----Original Message-----
>>>> From: Paulo Jorge Guedes
>>>> Sent: quarta-feira, 15 de Fevereiro de 2006 13:55
>>>> To: 'kde-buildsystem at kde.org'
>>>> Subject: ZLIB not being checked
>>>>
>>>> Hi,
>>>>
>>>> kgzipfilter.cpp is not compiled if zlib is not found.
>>>> This causes a linkage error because the pieces of code that use gzip
>>> are
>>>
>>>> not surrounded by some macro like bzip2 for example (#ifdef
>>>> HAVE_BZIP2_SUPPORT).
>>>> I can see that there is already a "HAVE_LIBZ" being set, although the
>>> code
>>>
>>>> doesn't use it.
>>>> If you are interested in such a patch please let me know.
>> Hmm. I'm not sure gzip support should be optional. Without it you have
>> no ZIP support, and without ZIP support you have no KOffice, for instance.
> 
> After thinking a bit about it I also thought that maybe a better idea would be 
> to make gzip required:
> 
> - macro_optional_find_package(ZLIB)
> + find_package(ZLIB REQUIRED)
> 
> Having a KDE on windows which can't deal with gzipped files would suck.
> What do you think ?
> 
> Bye
> Alex

zlib is such a basic feature that it is by default on all UNIX machines.
Why should we drop it for windows?
Requiring it, also simplifies the cmake files:
I could remove all the added

if(ZLIB_FOUND)
   include_directories(${ZLIB_INCLUDE_DIR})
endif(ZLIB_FOUND)

lines.

Peter


More information about the Kde-buildsystem mailing list