Skip to content

poco Zip: link ZLIB::ZLIB when unbundled#4987

Merged
matejk merged 1 commit intopocoproject:mainfrom
jcar87:bugfix/zlib-unbundled
Aug 8, 2025
Merged

poco Zip: link ZLIB::ZLIB when unbundled#4987
matejk merged 1 commit intopocoproject:mainfrom
jcar87:bugfix/zlib-unbundled

Conversation

@jcar87
Copy link
Copy Markdown
Contributor

@jcar87 jcar87 commented Aug 4, 2025

The Poco::Zip library target uses ZLIB in its implementation (not in public headers).

Since #4937, compilation may be broken when POCO_UNBUNDLED is True - previously, it was consuming ZLIB transitively via Foundation. Compilation may succeed on systems where zlib.h can be found by the compiler in the default paths, but this may not be the same version located by CMake and may cause linker issues (unlikely, but possible).

This PR adds the missing requirement.

Fixes #4980

@matejk matejk added this to the Release 1.15.0 milestone Aug 8, 2025
@matejk matejk merged commit 7eb8de3 into pocoproject:main Aug 8, 2025
36 checks passed
@matejk matejk added enhancement cmake Related to cmake build system labels Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake Related to cmake build system enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zip component build error when using CMake build + POCO_UNBUNDLED in Release 1.14.2

2 participants