mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-29 06:35:39 -04:00
check if pkg-config is available
This commit is contained in:
parent
612d72ebf1
commit
63c6ac73fc
1 changed files with 4 additions and 2 deletions
|
|
@ -159,8 +159,10 @@ function get_mpi_lib ()
|
|||
fi
|
||||
done
|
||||
# homebrew hwloc
|
||||
if pkg-config --exists hwloc; then
|
||||
outlist="${outlist} $(pkg-config --libs-only-L hwloc 2> /dev/null) -lhwloc"
|
||||
if [ $(command -v pkg-config 2> /dev/null) -ne 0 ]; then
|
||||
if pkg-config --exists hwloc; then
|
||||
outlist="${outlist} $(pkg-config --libs-only-L hwloc 2> /dev/null) -lhwloc"
|
||||
fi
|
||||
fi
|
||||
echo ${outlist}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue