Skip to content

Commit

Permalink
Merge branch 'xylar/mpas-framework/fix-lapack-check' into next (PR #4972
Browse files Browse the repository at this point in the history
)

MPAS Standalone: Fix check for LAPACK libraries

Fixes an issue with standalone MPAS builds which resulted in error
messages about a missing library even though this just means that the
correct directory for LAPACK had not yet been found. Does not impact
the E3SM build system.

[BFB]
  • Loading branch information
jonbob committed Jun 2, 2022
2 parents 730d8d6 + dc680ed commit d90b2da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/mpas-framework/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -609,11 +609,11 @@ ifeq "$(USE_LAPACK)" "true"
ifndef LAPACK
$(error LAPACK is not set. Please set LAPACK to the LAPACK install directory when USE_LAPACK=true)
endif
ifneq (, $(shell ls $(LAPACK)/liblapack.*))
ifneq ($(wildcard $(LAPACK)/liblapack.*), )
LIBS += -L$(LAPACK)
else ifneq (, $(shell ls $(LAPACK)/lib/liblapack.*))
else ifneq ($(wildcard $(LAPACK)/lib/liblapack.*), )
LIBS += -L$(LAPACK)/lib
else ifneq (, $(shell ls $(LAPACK)/lib64/liblapack.*))
else ifneq ($(wildcard $(LAPACK)/lib64/liblapack.*), )
LIBS += -L$(LAPACK)/lib64
else
$(error liblapack.* does NOT exist in $(LAPACK) or $(LAPACK)/lib)
Expand Down

0 comments on commit d90b2da

Please sign in to comment.