Enable CMake build on MacOS. Tested with ctffind #411
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The latest from repo did not build with CMake on MacOS. This fixes this problem. I have confirmed that ctffind builds on MacOS 10.15.7 using Clang and FFTW + OpenMP + OpenMPI from homebrew. I have also verified that ctffind runs to completion on test data.
In the process, I believe I fixed a bug in cistem_parameters.cpp (or at least clang thinks I did). BUT: I have not tested this functionality - I don't know where it is used. I would appreciate if someone who uses this functionality could build & test before we merge. Perhaps @bHimes or @timothygrant80 knows where this is used and can see whether I fixed or broke something.
I have rebased my feature branch to be current with the master branch using to minimize conflicts and headaches
Which compilers were tested
These changes are isolated to the
How has the functionality been tested?
I can build ctffind on MacOS using CMake and clang.
Warning: I have not tested building using autotools on MacOS, or at all on linux.
Warning 2: it's likely that the GPU-enabled side of things will not build with CMake, but I believe this was already the case before these commits (I guess cmake builds just were not tested)
Checklist: