You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using nc-config in ./configure should include both C and Fortran netCDF include directories.
Current Behavior
Only nc-config --includedir is used, which only finds the netCDF-C include directory. In a combined-include installation, this works fine, but if the netCDF library installation tree is rooted elsewhere (as it is in some module systems, and in Homebrew on Macs), this will fail and required manually defining $NETCDF_INC.
Possible Solution
Use nc-config --fflags to get Fortran-specific include directories and append them to the macros file.
Steps to Reproduce (for bugs)
Build on a system with split C/Fortran netCDF library trees
Try to build without manually defining $NETCDF_INC and $NETCDF_LIB
????
Sad panda
Notes:
I'm not sure if/how this is handled in CMake, but it's worth looking into. Unfortunately, the CI system still uses the legacy build system.
The text was updated successfully, but these errors were encountered:
Expected Behavior
Using
nc-config
in./configure
should include both C and Fortran netCDF include directories.Current Behavior
Only
nc-config --includedir
is used, which only finds the netCDF-C include directory. In a combined-include installation, this works fine, but if the netCDF library installation tree is rooted elsewhere (as it is in some module systems, and in Homebrew on Macs), this will fail and required manually defining$NETCDF_INC
.Possible Solution
Use
nc-config --fflags
to get Fortran-specific include directories and append them to themacros
file.Steps to Reproduce (for bugs)
Notes:
I'm not sure if/how this is handled in CMake, but it's worth looking into. Unfortunately, the CI system still uses the legacy build system.
The text was updated successfully, but these errors were encountered: