mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
Check first if file exists
This commit is contained in:
parent
58e3e09bda
commit
bfb26d4496
1 changed files with 4 additions and 2 deletions
|
|
@ -79,8 +79,10 @@ if [ "${with_hdf5}" != "__DONTUSE__" ]; then
|
|||
else
|
||||
HDF5_LIBS="-lhdf5_fortran -lhdf5_f90cstub -lhdf5 -lz"
|
||||
fi
|
||||
if [ -n "$(grep libsz ${pkg_install_dir}/lib/pkgconfig/hdf5.pc)" ]; then
|
||||
HDF5_LIBS="${HDF5_LIBS} -lsz"
|
||||
if [ -f "${pkg_install_dir}/lib/pkgconfig/hdf5.pc" ]; then
|
||||
if [ -n "$(grep libsz ${pkg_install_dir}/lib/pkgconfig/hdf5.pc)" ]; then
|
||||
HDF5_LIBS="${HDF5_LIBS} -lsz"
|
||||
fi
|
||||
fi
|
||||
if [ "${with_hdf5}" != "__SYSTEM__" ]; then
|
||||
cat << EOF > "${BUILDDIR}/setup_hdf5"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue