Commit 02dca5a7 authored by Matthias Redies's avatar Matthias Redies

add compiler name to external files -> no recompilation

parent 046cb70b
hdf5_version=1.10.3 hdf5_version=1.10.3
if [ ! -r CMake-hdf5-${hdf5_version} ] if [ ! -r CMake-hdf5-${hdf5_version}_${FC} ]
then then
#Get the file with the code #Get the file with the code
curl -LO "https://github.com/MRedies/hdf5-mirror/raw/master/CMake-hdf5-${hdf5_version}.tar.gz" curl -LO "https://github.com/MRedies/hdf5-mirror/raw/master/CMake-hdf5-${hdf5_version}.tar.gz"
...@@ -10,7 +10,8 @@ then ...@@ -10,7 +10,8 @@ then
fi fi
tar xzf CMake-hdf5-${hdf5_version}.tar.gz tar xzf CMake-hdf5-${hdf5_version}.tar.gz
cd CMake-hdf5-${hdf5_version} mv CMake-hdf5-${hdf5_version} CMake-hdf5-${hdf5_version}_${FC}
cd CMake-hdf5-${hdf5_version}_${FC}
#copy options.cmake to adjust settings for compilation #copy options.cmake to adjust settings for compilation
cp ../HDF5options.cmake . cp ../HDF5options.cmake .
#Compile&test (This will take a while) #Compile&test (This will take a while)
...@@ -20,7 +21,7 @@ then ...@@ -20,7 +21,7 @@ then
make install make install
cd .. cd ..
else else
cd CMake-hdf5-${hdf5_version} cd CMake-hdf5-${hdf5_version}_${FC}
fi fi
#Store the installation location #Store the installation location
FLEUR_LIBDIR="$PWD/HDF_Group/HDF5/${hdf5_version}/lib $FLEUR_LIBDIR" FLEUR_LIBDIR="$PWD/HDF_Group/HDF5/${hdf5_version}/lib $FLEUR_LIBDIR"
......
libxc_version=4.2.1 libxc_version=4.2.1
if [ ! -d libxc-${libxc_version} ] if [ ! -d libxc-${libxc_version}_${FC} ]
then then
#Get the file with the code #Get the file with the code
curl --connect-timeout 10 -LO "https://github.com/MRedies/libxc-mirror/raw/master/libxc-${libxc_version}.tar.gz" curl --connect-timeout 10 -LO "https://github.com/MRedies/libxc-mirror/raw/master/libxc-${libxc_version}.tar.gz"
...@@ -10,13 +10,14 @@ then ...@@ -10,13 +10,14 @@ then
fi fi
tar xzf libxc-${libxc_version}.tar.gz tar xzf libxc-${libxc_version}.tar.gz
cd libxc-${libxc_version} mv libxc-${libxc_version} libxc-${libxc_version}_${FC}
cd libxc-${libxc_version}_${FC}
#Compile&test (This will take a while) #Compile&test (This will take a while)
./configure --prefix=$PWD/INSTALL_DIR ./configure --prefix=$PWD/INSTALL_DIR
make -j make -j
make install make install
else else
cd libxc-${libxc_version} cd libxc-${libxc_version}_${FC}
fi fi
#Store the installation location #Store the installation location
FLEUR_LIBDIR="$PWD/INSTALL_DIR/lib $FLEUR_LIBDIR" FLEUR_LIBDIR="$PWD/INSTALL_DIR/lib $FLEUR_LIBDIR"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment