Skip to content

cmake: fix find_package(ZLIB) incompatible with vendored ZLIB#697

Open
madebr wants to merge 3 commits intolibsdl-org:mainfrom
madebr:fix-zlib-vendored-cmake
Open

cmake: fix find_package(ZLIB) incompatible with vendored ZLIB#697
madebr wants to merge 3 commits intolibsdl-org:mainfrom
madebr:fix-zlib-vendored-cmake

Conversation

@madebr
Copy link
Contributor

@madebr madebr commented Feb 18, 2026

This fixes the following error:

CMake Error at /usr/lib64/cmake/ZLIB/ZLIB-targets.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: ZLIB::ZLIB

  Targets not yet defined: ZLIB::ZLIBSTATIC

New zlib installs a ZLIBConfig.cmake file,
which is incompatible with subprojects doing find_package(ZLIB).
@sezero
Copy link
Contributor

sezero commented Feb 20, 2026

Is this one finalized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants