# CMake: zlib dependency not properly propagted by hdf5 targets

**URL:** <https://forum.hdfgroup.org/t/cmake-zlib-dependency-not-properly-propagted-by-hdf5-targets/5149>\
**Category:** HDF5 Library\
**Created:** [December 6, 2018, 10:01am UTC](https://forum.hdfgroup.org/t/cmake-zlib-dependency-not-properly-propagted-by-hdf5-targets/5149 "2018-12-06T10:01:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [December 6, 2018, 2:06pm UTC](https://forum.hdfgroup.org/t/cmake-zlib-dependency-not-properly-propagted-by-hdf5-targets/5149/2 "2018-12-06T14:06:44Z")

</div>

zlib in hdf5 is private and static because zlib is used internally and hdf5 does not have a requirement to expose the zlib interface.  
The requirement for zlib linking should be then under downstream application control.

Allen

---

_[View the full topic](https://forum.hdfgroup.org/t/cmake-zlib-dependency-not-properly-propagted-by-hdf5-targets/5149)._
