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

Use PkgConfig as a fallback for finding NetCDF #1940

Closed
kieranricardo opened this issue Oct 20, 2022 · 1 comment
Closed

Use PkgConfig as a fallback for finding NetCDF #1940

kieranricardo opened this issue Oct 20, 2022 · 1 comment

Comments

@kieranricardo
Copy link

kieranricardo commented Oct 20, 2022

Hi there,

I had some trouble installing ParallelIO on the HPC system I'm on, and I was able fix it by replacing

find_package (NetCDF REQUIRED COMPONENTS C Fortran)

with

  find_package (NetCDF COMPONENTS C Fortran)
  if (NOT NetCDF_Fortran_FOUND)
    include(FindPkgConfig)
    pkg_check_modules(NetCDF_Fortran REQUIRED IMPORTED_TARGET "netcdf-fortran")
  endif()

It's a non breaking change that'll make ParallelIO more portable so I thought I'd see if there'd be interest in adding this in.

@jedwards4b
Copy link
Contributor

Sure, A PR would be welcome.

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

2 participants