Skip to content

Commit

Permalink
fix Make.ERF to find netcdf (#1978)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Nov 22, 2024
1 parent 567baa9 commit e12bec0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Exec/Make.ERF
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,14 @@ endif
#turn on NetCDF macro define
ifeq ($(USE_NETCDF), TRUE)
DEFINES += -DERF_USE_NETCDF
includes += $(shell pkg-config --cflags netcdf)
LIBRARIES += $(shell pkg-config --libs netcdf)
has_netcdf_mpi := $(shell pkg-config --cflags netcdf-mpi > /dev/null 2>&1; echo $$?)
ifeq ($(has_netcdf_mpi),0)
includes += $(shell pkg-config --cflags netcdf-mpi)
LIBRARIES += $(shell pkg-config --libs netcdf-mpi)
else
includes += $(shell pkg-config --cflags netcdf)
LIBRARIES += $(shell pkg-config --libs netcdf)
endif
endif

ifeq ($(USE_HDF5), TRUE)
Expand Down

0 comments on commit e12bec0

Please sign in to comment.