-
Notifications
You must be signed in to change notification settings - Fork 107
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
Update FindESMF.cmake #452
Conversation
…version if requested
These changes look great. CI is failing due to the macos homebrew problem... @kgerheiser does that get fixed with a brew update command somewhere? |
OK, turns out there's a problem here. See the comments in this issue: |
Yes, that's a problem, but the good news is since we have our own |
@kgerheiser I would prefer keeping the |
OK, last week the ESMF team did a release for us. Perhaps we should forget about checking for beta releases, and only support checking for full releases in the CMake. This would match what is generally done. For example, when requiring a netcdf-c version, we will only worry about actual netcdf-c releases, not any intermediate releases. Dealing with those will be up to the developers, not hpc-stack. With this relaxation, the problem becomes a lot simpler, right? |
@edwardhartnett Yes, just getting the version is straightforward. |
Can the |
This PR updates
FindESMF.cmake
based onesmf.mk
to define the following variables:ESMF_VERSION
string based onESMF_VERSION_STRING_GIT
MAJOR
,MINOR
,PATCH
,TWEAK
components ofESMF_VERSION
ESMF_BETA_RELEASE
to indicate returned version is a Beta release.Usage:
If the found version is less than the desired
VERSION
,find_package
will fail with an error message.I have tested a stripped down build on my macOS and Orion, but not on the various platforms.