-
Notifications
You must be signed in to change notification settings - Fork 3
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
Investigate using nc-config / nf-config to discover NetCDF libraries #36
Comments
oh. sigh. It's relatively easy to get CMake to generate pkg-config files. I wish NetCDF would install good/thorough CMake package config files and generate pkg-config files, then just abandon auto-tools. It would save everyone the hassle of having to write yet another FindNetCDF.cmake module. I've seen at least 4 popular versions floating around, each with its strengths and deficiencies. If NetCDF always used CMake, installed decent CMake pacakge config files and pkg-config files, and was smart enough to set (i.e., you could adjust |
Could we not simply rely on If not I would probably just the hints to something like:
and then the user can simply pass |
@dmey Do you have a concrete situation where you're unable to use |
Well this is why I suggested adding to |
#24 (comment)
In some situations, typically HPC environments, this would avoid having to set
-DNETCDF_DIR=..
/-DNETCDF_FORTRAN_DIR=..
.Note that if netcdf-fortran is built with CMake, then
nf-config --prefix
just prints "not supported in CMake builds" or something similar.The text was updated successfully, but these errors were encountered: