-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
CMake: Install Blosc2Config.cmake #537
Conversation
a8fb220
to
80cc257
Compare
211c0da
to
0ea519c
Compare
0ea519c
to
04c4b6b
Compare
af5f733
to
bbea358
Compare
This adds a CMake installer to conserve targets and properties on install, so CMake users do not need to write `FindBlosc2.cmake` files anymore. This also helps to preserve transitive dependencies on CMake targets, especially useful for fully static builds, e.g., for Python wheels.
bbea358
to
a67dfca
Compare
For @FrancescAlted - please let me know if you prefer more inline comments or need more details. I am also happy to do a few general updates/modernizations to CMake as a follow-up PR. The PR here tries to focus on only changing the things necessary for now, enabling all-static builds and propagating CMake targets and their dependencies to downstream developers cleanly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks great to me. However, as some changes are quite large, I would appreciate some more comments in the places that things have changed most. Thanks in advance!
Yes, I have suggested that already :-)
Sounds good to me. Let's first merge this one and proceed gradually. Thanks! |
Thank you @FrancescAlted! I added more inline comments and added some cleaning in the last commit. |
Attn @FrancescAlted :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
My pleasure! :) |
This adds a CMake installer to conserve targets and properties on install, so CMake users do not need to write
FindBlosc2.cmake
files anymore.This also helps to preserve transitive dependencies on CMake targets, especially useful for fully static builds, e.g., for Python wheels.
The installed config package is designed to work both on Unix (Linux/macOS) and Windows.
Wheels: ADIOS2 -> v2.9.0, blosc2 openPMD/openPMD-api#1387