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

documentation for building netcdf-fortran with CMake?

Open edhartnett opened this issue 6 years ago • 4 comments

I am trying to get a cmake build working in my CI, but I can't find any instructions or documentation, and if Cmake has a standard way of specifying where to find required libraries, I don't know what that way is.

It ignores CPPFLAGS and LDFLAGS, and is trying to find the netcdf C library. How do I tell the netcdf-fortran cmake build where the C library is?

edhartnett avatar Feb 11 '19 19:02 edhartnett

The cmake underpinnings in Fortran are a port that Russ did of my 1st attempt at integration with C. There are refinements and such which need to be made. Sticking with autotools for the time being is most likely easier. You can also use -DCMAKE_PREFIX_PATH=/[c library location root]/

WardF avatar Feb 11 '19 19:02 WardF

OK, thanks!

edhartnett avatar Feb 11 '19 20:02 edhartnett

No problem at all :)

WardF avatar Feb 11 '19 20:02 WardF

#121

luzpaz avatar Jul 20 '19 18:07 luzpaz