Skip to content

Fix: Auto-fetch zlib to fix Windows build failures#68

Merged
LucasBoTang merged 2 commits intoMIT-Lu-Lab:mainfrom
ZedongPeng:fetch_zlib
Jan 21, 2026
Merged

Fix: Auto-fetch zlib to fix Windows build failures#68
LucasBoTang merged 2 commits intoMIT-Lu-Lab:mainfrom
ZedongPeng:fetch_zlib

Conversation

@ZedongPeng
Copy link
Copy Markdown
Collaborator

Fixes #66

This PR updates CMakeLists.txt to automatically download and compile zlib (via FetchContent) if it is not found on the system.

Key changes:

  • Replaced find_package(ZLIB REQUIRED) with a fallback logic.
  • If system zlib is missing (common on Windows), it fetches sources from GitHub and links statically.

Hi @LucasBoTang . Can you check if it resolves the failure on Windows?

@LucasBoTang LucasBoTang merged commit 7c7d202 into MIT-Lu-Lab:main Jan 21, 2026
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.

Windows pip install cupdlpx may fail if zlib is not pre-installed

2 participants