mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-22 12:23:54 +01:00
Fix python-install
This commit is contained in:
parent
cb629ccb03
commit
6a8801bd9c
@ -16,8 +16,10 @@ done
|
||||
# check that both variables are set
|
||||
if [[ -z ${H5_LDFLAGS_LOCAL} ]] || [[ -z ${H5_CFLAGS_LOCAL} ]]; then
|
||||
if [[ -z ${H5_LDFLAGS} ]] || [[ -z ${H5_CFLAGS} ]]; then
|
||||
which h5cc &> /dev/null
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
# If pkg-config fails, try to locate hdf5 using h5cc
|
||||
which h5cc &> /dev/null && HAS_H5CC=1
|
||||
pkg-config --libs hdf5
|
||||
if [[ $? -ne 0 && $HAS_H5CC == "1" ]] ; then
|
||||
HDF5_tmp_flags=$(h5cc -showconfig \
|
||||
| grep 'FLAGS\|Extra libraries:' \
|
||||
| awk -F: '{printf("%s "), $2}' )
|
||||
|
Loading…
Reference in New Issue
Block a user