Thanks a lot, but I still do not get it right: what do I need to set
and in what order to 1) enable the ZLIB compression filter and 2) use
my own (or system) provided zlib version?

Regards,
Dominik

On Sat, May 28, 2011 at 2:59 PM, Allen D Byrne <[email protected]> wrote:
> Dominik,
>
> Looks Like I'll need to work on documentation! That OPTION is intended to
> work with the EXTERNAL_PROJECT of CMake. Here is the relevant CMake code:
>
> INCLUDE (ExternalProject)
>
> OPTION (HDF5_ALLOW_EXTERNAL_SUPPORT "Allow External Library Building" "NO")
>
> OPTION (ZLIB_USE_EXTERNAL "Use External Library Building for ZLIB" 0)
>
> OPTION (SZIP_USE_EXTERNAL "Use External Library Building for SZIP" 0)
>
> IF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT
> MATCHES "TGZ")
>
> SET (ZLIB_USE_EXTERNAL 1)
>
> SET (SZIP_USE_EXTERNAL 1)
>
> IF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN")
>
> SET (ZLIB_URL ${ZLIB_SVN_URL})
>
> SET (SZIP_URL ${SZIP_SVN_URL})
>
> ELSEIF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
>
> IF (NOT TGZ_PATH)
>
> SET (TGZ_PATH ${HDF5_SOURCE_DIR})
>
> ENDIF (NOT TGZ_PATH)
>
> SET (ZLIB_URL ${TGZ_PATH}/${ZLIB_TGZ_NAME})
>
> SET (SZIP_URL ${TGZ_PATH}/${SZIP_TGZ_NAME})
>
> ENDIF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN")
>
> ENDIF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR
> HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
>
> So if you just want to setup the lib and include paths, don't use these
> OPTIONS.
>
> Allen
>
>> With the latest version configured with latest cmake (linux) I find
>
>> that ZLIB_USE_EXTERNAL has a very strange effect. Off by default, I
>
>> put it on then it issues an error that ZLIB is required. Only setting
>
>> it to off again lets me chose my zlib paths in the GUI.
>
>> Anyone with similar symptoms?
>
>>
>
>> Thanks, Dominik
>
>>
>
>> _______________________________________________
>
>> Hdf-forum is for HDF software users discussion.
>
>> [email protected]
>
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
>>

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to