summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/zlib_system_dependency.md
blob: 5bdabf3a04fcf5d16ea70d58474a60d850f0451f (plain)
1
2
3
4
5
6
7
8
## Add a system type dependency for zlib

This allows zlib to be detected on macOS and FreeBSD without the use of
pkg-config or cmake, neither of which are part of the base install on those
OSes (but zlib is).

A side effect of this change is that `dependency('zlib')` also works with
cmake instead of requiring `dependency('ZLIB')`.