-
Notifications
You must be signed in to change notification settings - Fork 27
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
How to detect presence and capabilities of z5 from autoconf/CMake build systems? #167
Comments
Very glad to hear this :).
Indeed, z5 is header only (and compression libs need to be linked dynamically). Would that work for you / any other suggestions?
I would also do this via find_packages(BLOSC)
if(BLOSC_FOUND)
# build with blosc ....
endif() See also https://github.com/constantinpape/z5/blob/master/CMakeLists.txt#L218. Let me know if you run into any other issues or have suggestions to improve the build process. |
Thanks for the suggestions. I will look into this and get back to you with whatever I come up with... |
FYI I started to work on this in #168 |
OK, but actually I also need this in autoconf. ;-)
What autoconf needs is a header file to look for, and a library to link to.
Since you don't actually have a library, but just header files, I'm not
sure how to proceed. I guess a custom test which attempts to build a
program that uses z5.
…On Sat, Mar 28, 2020 at 2:06 PM Constantin Pape ***@***.***> wrote:
FYI I started to work on this in #168
<#168>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJIOMMGY2ZADGJG4DTTCDS3RJZKDNANCNFSM4LF4672A>
.
|
For the header, I could just add a |
Ok, in #168 I have added a cmake config now and tested it in one of my external projects and it seems to work. |
Howdy!
I am one of the programmers on the PIO project, a free software C/Fortran library to do scalable, netCDF I/O on many many processors on modern supercomputers. (See https://github.com/NCAR/ParallelIO).
The PIO library is used by the CESM climate model (http://www.cesm.ucar.edu/). A CESM programmer contributed changes to the PIO library that uses z5 to add Zarr capability, and they are very happy with the results.
I am trying to merge their work, and I need to understand how to detect whether Z5 is present on the build machine. I need to do this from both autoconf and CMake based builds.
Also I need to learn which compression filters are available with Z5. Is there a good way to do that?
Since z5 seems to be a header only library, I guess I can't look for a function, which is what I would usually do...
The text was updated successfully, but these errors were encountered: