-
Notifications
You must be signed in to change notification settings - Fork 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
Updates to allow GEOS to build without MKL #8
Conversation
This set of PRs is to allow GEOS to build without MKL. Note that it currently does this by making RRTMGP unusable if MKL is not found. This is not ideal, but it's a first attempt.
For unknown reasons, even though, with MKL loaded, MKL_LIBRARIES is the same as LAPACK_LIBRARIES save for a `-lm -ldl`, the answers are non-zero-diff. So, if MKL_FOUND, use MKL_LIBRARIES to maintain zero-diff
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.
BTW, CMake does have a notion of a target "alias" this might let you hide the MKL/LAPACK distinction in some instances.
I have not played with it myself. Just seen it mentioned in the man pages occasionally e.g.: https://cmake.org/cmake/help/latest/command/add_library.html#alias-libraries |
This set of PRs is to allow GEOS to build without MKL. Note that it currently does this by making RRTMGP unusable if MKL is not found. This is not ideal, but it's a first attempt.
Should be taken in concert with:
GEOS-ESM/GEOSgcm_GridComp#321GEOS-ESM/ESMA_cmake#115ETA: Turns out thanks to CMake knowledge of @tclune this is no longer true! Since each component specifies what they need, they are now independent!