Skip to content

Commit fe46d4f

Browse files
committed
Check for the libnetcdf library existence similar to pnetcdf
As the netcdf library logic mirrors the pnetcdf one, it would suffer from the same issues noted in 0ca4208 about lib/lib64 checking. This updates the corresponding issue in the netcdf library detection before it becomes an issue.
1 parent 0ca4208 commit fe46d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,10 @@ ifneq ($(wildcard $(PIO_LIB)/libgptl\.*), )
525525
endif
526526

527527
ifneq "$(NETCDF)" ""
528-
ifneq ($(wildcard $(NETCDF)/lib), )
528+
ifneq ($(wildcard $(NETCDF)/lib/libnetcdf.*), )
529529
NETCDFLIBLOC = lib
530530
endif
531-
ifneq ($(wildcard $(NETCDF)/lib64), )
531+
ifneq ($(wildcard $(NETCDF)/lib64/libnetcdf.*), )
532532
NETCDFLIBLOC = lib64
533533
endif
534534
CPPINCLUDES += -I$(NETCDF)/include

0 commit comments

Comments
 (0)