Zlib1213tarxz (2024)

Historically, source code was distributed as .tar.gz (gzip). More recently, projects have moved to .tar.xz (XZ compression).

brew install xz

# Tell CMake where to find this specific zlib
set(ZLIB_ROOT "/usr/local/zlib-1.2.13")
find_package(ZLIB REQUIRED)
target_link_libraries(your_target PRIVATE ZLIB::ZLIB)

sudo dnf install xz