Skip to content

Conversation

@Chirimen-Jako
Copy link

@Chirimen-Jako Chirimen-Jako commented Nov 21, 2025

When building minizip-ng as a static library (undefined BUILD_SHARED_LIBS) with Zlib-ng, the .vcxproj generated by CMake incorrectly referred to the dynamic library target (zlib) instead of the static library target (zlibstatic) in its linker settings.

This fix separates the targets in CMake:

  • Use zlibstatic for target_link_libraries() to ensure the generated .vcxproj correctly references the static library.
  • Use zlib for install(TARGETS...) to prevent CMake alias errors during installation (CI).

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.

1 participant