Skip to content

Conversation

@ZedongPeng
Copy link
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?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compile option -fPIC is not supported on Windows.

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