Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch Content Superbuild for zlib-ng #547

Merged

Conversation

ax3l
Copy link
Contributor

@ax3l ax3l commented Aug 20, 2023

Add additional logic needed to make superbuilds with fetch-content on recent versions of zlib-ng work in #544.

Otherwise:
- we cannot use it in our shared lib
- downstream consumers will not be able to use it in shared libs,
  even if c-blosc is build as static

Not using -fPIC is a corner-case and should be addressed with
proper external dependencies instead of a superbuild (marginal
performance gains).
We will need to export the Zlib-NG libs to the build
tree, because upstream does not do it yet (work-around).

Additionally, we want to install zlib, because users might need
it in case they pick up c-blosc2 as a static lib.
@ax3l ax3l force-pushed the fetchcontent-zlib-ng-updates branch from b5c0e3f to 400d50b Compare August 21, 2023 00:39
@ax3l ax3l force-pushed the fetchcontent-zlib-ng-updates branch from 5abd1cf to 625f87b Compare August 21, 2023 00:45
@FrancescAlted
Copy link
Member

Hey @ax3l this is really cool! It is the first time that we are using FetchContent machinery in cmake, but I think this looks great. I'm going to merge. If that works well, we may want to use the same approach for zstd too.

@FrancescAlted FrancescAlted merged commit ce1602f into Blosc:fetchcontent-zlib-ng Aug 21, 2023
16 checks passed
@ax3l ax3l deleted the fetchcontent-zlib-ng-updates branch August 22, 2023 02:04
@ax3l
Copy link
Contributor Author

ax3l commented Aug 22, 2023

Hi @FrancescAlted, yes it's fun! 🎉
That sounds great, yes let's do that for all the things we have an internal fallback?

This pull request was closed.
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