netcdf-fortran
netcdf-fortran copied to clipboard
Question: installation help w/ CMake
@WardF If I install netcdf-fortran using CMake, is it a bad idea to install it to the same netcdf root directory that netcdf-c was installed to?
Also, I've been having trouble using CMake's find_package(netCDF)
but perhaps this is because I installed an old version of netcdf-Fortran... Is the netCDFConfig.cmake file that gets installed maintained/up to date?
Also, a few more details, I am compiling on native KNL and using GNU modules to manage the environment.
Thanks in advance!
#121
@zbeekman It's ok to install to the same netCDF root directory, that is fine. the netCDFConfig.cmake file that is installed with 4.7.0 should be up to date, but there is a new netCDF release coming (4.7.1) that may have been updated; I'll need to go check. Thanks!
It would be really nice if netCDF installed a halfway decent CMake package configuration file so that find_package(netCDF)
just worked without any cobbled together & fragile FindNetCDF modules... It would also be great if you wrote out and installed a pc-config file from CMake. If you want a pointer to a project that does this just let me know.