From ab18feab3f9011c8ad99bc8a05ded3a47abddb4d Mon Sep 17 00:00:00 2001 From: edoapra Date: Thu, 15 Dec 2022 18:03:26 -0800 Subject: [PATCH] external LIBXC: LIBXC_DIR replaced by LIBXC_INCLUDE/LIBXC_LIB --- src/config/makefile.h | 4 ++-- src/nwdft/libxc/GNUmakefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/makefile.h b/src/config/makefile.h index 6b6cd907b8..ebaf6ff672 100644 --- a/src/config/makefile.h +++ b/src/config/makefile.h @@ -3634,9 +3634,9 @@ ifdef USE_LIBXC endif # we use an external libxc library out of LIBXC_DIR -ifdef LIBXC_DIR +ifdef LIBXC_LIB DEFINES += -DUSE_LIBXC - EXTRA_LIBS += -L$(LIBXC_DIR)/lib + EXTRA_LIBS += -L$(LIBXC_LIB) EXTRA_LIBS += -lxcf03 -lxc endif diff --git a/src/nwdft/libxc/GNUmakefile b/src/nwdft/libxc/GNUmakefile index 798180a7f7..b8cd1ec397 100644 --- a/src/nwdft/libxc/GNUmakefile +++ b/src/nwdft/libxc/GNUmakefile @@ -14,8 +14,8 @@ LIB_INCLUDES = -I../include ifdef USE_LIBXC LIB_INCLUDES += -I../../libext/libxc/install/include endif -ifdef LIBXC_DIR -LIB_INCLUDES += -I$(LIBXC_DIR)/include +ifdef LIBXC_INCLUDE +LIB_INCLUDES += -I$(LIBXC_INCLUDE) endif LIB_INCLUDES += -I.