fix env. variables

This commit is contained in:
edoapra 2024-04-02 14:12:52 -07:00
parent 9a65a96022
commit f7d8bebc10
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA

View file

@ -217,20 +217,20 @@ ifdef OLD_GA
else
#case guard against case when tools have not been compiled yet
ifeq ("$(wildcard ${GA_PATH}/bin/ga-config)","")
INCPATH = -I$(SRCDIR)/tools/install/include
INCPATH := -I$(SRCDIR)/tools/install/include
else
ifneq ("$(wildcard ${NWCHEM_TOP}/src/ga_cppflags.txt)","")
GA_CPPFLAGS := $(shell cat $(NWCHEM_TOP)/src/ga_cppflags.txt)
endif
ifeq ($(GA_CPPFLAGS),)
GA_CPPFLAGS := $(shell ${GA_PATH}/bin/ga-config --cppflags )
GA_CPPFLAGS := $(shell $(GA_PATH)/bin/ga-config --cppflags )
endif
INCPATH := $(word $(words ${GA_CPPFLAGS}),${GA_CPPFLAGS})
INCPATH := $(word $(words $(GA_CPPFLAGS)),$(GA_CPPFLAGS))
ifdef EXTERNAL_GA_PATH
INCPATH ::= -I$(shell $(NWCHEM_TOP)/src/tools/guess-mpidefs --mpi_include)
INCPATH += -I$(shell $(NWCHEM_TOP)/src/tools/guess-mpidefs --mpi_include)
endif
endif
endif