mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 22:25:48 -04:00
guess location of hwloc without pkg-config
This commit is contained in:
parent
233dc0b07d
commit
8f77b32ae8
1 changed files with 11 additions and 1 deletions
|
|
@ -30,7 +30,17 @@ if [[ -z "${NWCHEM_TOP}" ]]; then
|
|||
fi
|
||||
if [[ ! -z "${BUILD_MPICH}" ]]; then
|
||||
export PATH=${NWCHEM_TOP}/src/libext/bin:$PATH
|
||||
export LDFLAGS=`pkg-config --libs-only-L hwloc`
|
||||
if [ -x "$(command -v pkg-config1)" ]; then
|
||||
export LDFLAGS=`pkg-config --libs-only-L hwloc`
|
||||
else
|
||||
if [ -x "$(command -v brew)" ]; then
|
||||
export LDFLAGS=-L`brew --prefix`/lib/
|
||||
else
|
||||
echo 'WARNING: cannot guess the location of the hwloc library'
|
||||
# exit 1
|
||||
fi
|
||||
fi
|
||||
echo LDFLAGS for hwloc is $LDFLAGS
|
||||
fi
|
||||
if [[ "$FC" = "ftn" ]] || [[ ! -z "$USE_CMAKE_MASTER" ]] ; then
|
||||
get_cmake_master
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue