-
Notifications
You must be signed in to change notification settings - Fork 16
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
FindNetCDF.cmake should not ignore NetCDF_<COMP>_PATHS
if MPI_<COMP>_FOUND
is TRUE.
#456
Comments
@bartgol Could you please provide more information on possible configuration failures caused by this issue? Also, if you can share your steps and settings on your testing machines to reproduce this issue, we can try to reproduce it on other machines we have access to. |
@dqwu , here's a simple reproducer of the problem:
Some comments:
tl;dr: the function I have a quick fix (make |
@bartgol : So if I understand correctly in your system after a recent change/upgrade the NetCDF_C_PATH / NETCDF_FORTRAN_PATH that you set stopped working (was no longer used by SCORPIO when searching for the NetCDF lib)? |
I can't be 100% sure what the culprit was, but a call to In #457 I make it so that |
@bartgol : Are you using NetCDF_C_PATHS or NetCDF_Fortran_PATHS (instead of NetCDF_C_PATH / NetCDF_Fortran_PATH) to set the paths to the C / Fortran NetCDF libraries? |
Yes. It seems to me that those are the ones that scorpio passes to |
Does using NetCDF_C_PATH and NetCDF_Fortran_PATH work for you (these are the vars used by E3SM & recommended in the FindNetCDF cmake module)? |
Ah, yes, that seems to work. I guess that solves the problem, though I have to say that the fact that both Anyhow, since it boils down to personal taste, I think it's not a big deal. I can use __PATH, without the S at the end. Thanks! |
Thanks, I agree that the fact that *_PATHS is not available to the user is a bit confusing. We will fix that soon. |
The former can be overwritten by scorpio if certain MPI_<LANG>_XYZ vars are non-empty. The latter is guaranteed to be honored. See E3SM-Project/scorpio#456 for more details.
The former can be overwritten by scorpio if certain MPI_<LANG>_XYZ vars are non-empty. The latter is guaranteed to be honored. See E3SM-Project/scorpio#456 for more details.
The former can be overwritten by scorpio if certain MPI_<LANG>_XYZ vars are non-empty. The latter is guaranteed to be honored. See E3SM-Project/scorpio#456 for more details.
The former can be overwritten by scorpio if certain MPI_<LANG>_XYZ vars are non-empty. The latter is guaranteed to be honored. See E3SM-Project/scorpio#456 for more details.
The former can be overwritten by scorpio if certain MPI_<LANG>_XYZ vars are non-empty. The latter is guaranteed to be honored. See E3SM-Project/scorpio#456 for more details.
The helper function
initialize_paths
completely overwrites the user-providedNetCDF_<COMP>_PATHS
variable ifMPI_<COMP>_FOUND
is TRUE.Instead, it should append additional paths to it.
The text was updated successfully, but these errors were encountered: