Skip to content
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

documentation for building netcdf-fortran with CMake? #117

Open
edhartnett opened this issue Feb 11, 2019 · 4 comments
Open

documentation for building netcdf-fortran with CMake? #117

edhartnett opened this issue Feb 11, 2019 · 4 comments

Comments

@edhartnett
Copy link
Contributor

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?

@WardF
Copy link
Member

WardF commented Feb 11, 2019

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]/

@edhartnett
Copy link
Contributor Author

OK, thanks!

@WardF
Copy link
Member

WardF commented Feb 11, 2019

No problem at all :)

@luzpaz
Copy link

luzpaz commented Jul 20, 2019

#121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants