mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-29 06:35:39 -04:00
added LIBXC_VERSION to choose libxc version
This commit is contained in:
parent
e0ab9d8fbd
commit
6cf0983e14
2 changed files with 7 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
include ../../config/makefile.h
|
||||
|
||||
install/lib/libxc.a:
|
||||
./build_libxc.sh
|
||||
./build_libxc.sh LIBXC_VERSION
|
||||
|
||||
LIB_TARGETS += libxc
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,11 @@ check_tgz() {
|
|||
[ -f $1 ] && gunzip -t $1 > /dev/null && myexit=1
|
||||
echo $myexit
|
||||
}
|
||||
|
||||
VERSION=6.0.0
|
||||
if [ $# -eq 0 ]; then
|
||||
VERSION=6.0.0
|
||||
else
|
||||
VERSION=$1
|
||||
fi
|
||||
TGZ=libxc-${VERSION}.tar.gz
|
||||
if [ `check_tgz $TGZ` == 1 ]; then
|
||||
echo "using existing $TGZ"
|
||||
|
|
@ -78,7 +81,7 @@ fi
|
|||
|
||||
cd libxc
|
||||
# patch pk09 to avoid compiler memory problems
|
||||
patch -p0 -N < ../pk09.patch
|
||||
#patch -p0 -N < ../pk09.patch
|
||||
mkdir -p build
|
||||
cd build
|
||||
if [[ -z "${NWCHEM_TOP}" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue