From e728331cc8bd48f318e5371b4eb61f2caf1940b2 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 7 Jan 2020 10:51:45 -0800 Subject: [PATCH] docs: Add snippet for zlib system dependency --- docs/markdown/snippets/zlib_system_dependency.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/markdown/snippets/zlib_system_dependency.md diff --git a/docs/markdown/snippets/zlib_system_dependency.md b/docs/markdown/snippets/zlib_system_dependency.md new file mode 100644 index 000000000..5bdabf3a0 --- /dev/null +++ b/docs/markdown/snippets/zlib_system_dependency.md @@ -0,0 +1,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')`.