netcdf-fortran icon indicating copy to clipboard operation
netcdf-fortran copied to clipboard

Question: installation help w/ CMake

Open zbeekman opened this issue 7 years ago • 4 comments

@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?

zbeekman avatar Jul 20 '17 15:07 zbeekman

Also, a few more details, I am compiling on native KNL and using GNU modules to manage the environment.

Thanks in advance!

zbeekman avatar Jul 20 '17 15:07 zbeekman

#121

luzpaz avatar Jul 20 '19 18:07 luzpaz

@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!

WardF avatar Jul 23 '19 20:07 WardF

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.

zbeekman avatar Jul 24 '19 21:07 zbeekman