-
Couldn't load subscription status.
- Fork 2
Fix CMake #1
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
Fix CMake #1
Conversation
|
I didn't look at if you wanted to make HDF5 optional etc. that would probably also be possible (may switch source files depending if HDF5 found or similar) |
|
Interesting, I still have the same issue with your patch: |
|
Thanks I pushed a fix for linking for GNU Make. It stops build again at missing json_module.mod |
|
OK I see jsonfortran has a older style CMake. It may be more expedient to simply control it from this Cmake script. I'll give it a quick try (ignoring the jsonfortran/CMakeLists.txt and using this project's code to control it). |
|
Thanks a lot. As you can probably guess, I'm OK with any one approach that will just work. What I really hope to avoid is dropping CMake support. |
|
OK give that a try, it works for me with GCC and Intel oneAPI |
|
Thanks, Michael, that works like a charm. You rock as usual. If you agree, I'll merge these. And these new cmake files you added seem like nice examples for me to study. |
|
Yes it's ready to merge. I didn't add in the JsonFortran Coarray features but that can be done separately if needed. |
|
Well UTF-8 support in JSON now breaks the code because my fields are ASCII. I'd prefer to keep them ASCII if possible. Any good reason to do UTF-8? |
This reverts commit 12ba73a.
|
OK this is fixed |
|
Perfect, thanks again, I'll merge. |
This provides several fixes to CMake with regard to finding and linking HDF5 as well as canonical specification of compiler options. Now it's stuck on not finding json_module.mod from JsonFortran, I didn't look into that.
A key distinction is
find_package(HDF5 ...)uses my FindHDF5.cmake in h5fortran, which works for more scenarios and generally is more robust than factory CMake FindHDF5.