-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ocefpaf/pinhdf5
Pin to hdf5 1.8.17*
- Loading branch information
Showing
3 changed files
with
13 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$(uname)" == "Darwin" ] | ||
then | ||
# for Mac OSX | ||
export CC=clang | ||
export CXX=clang++ | ||
export MACOSX_VERSION_MIN="10.7" | ||
export MACOSX_DEPLOYMENT_TARGET="${MACOSX_VERSION_MIN}" | ||
export CXXFLAGS="${CXXFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}" | ||
export CXXFLAGS="${CXXFLAGS} -stdlib=libc++ -std=c++11" | ||
export LDFLAGS="${LDFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}" | ||
export LDFLAGS="${LDFLAGS} -stdlib=libc++ -lc++" | ||
export LINKFLAGS="${LDFLAGS}" | ||
elif [ "$(uname)" == "Linux" ] | ||
then | ||
# for Linux | ||
export CC=gcc | ||
export CXX=g++ | ||
export CXXFLAGS="${CXXFLAGS} -DBOOST_MATH_DISABLE_FLOAT128" | ||
export LDFLAGS="${LDFLAGS}" | ||
export LINKFLAGS="${LDFLAGS}" | ||
else | ||
echo "This system is unsupported by the toolchain." | ||
exit 1 | ||
if [ $(uname) == Darwin ]; then | ||
export CXX="${CXX} -stdlib=libc++" | ||
fi | ||
|
||
export CFLAGS="${CFLAGS} -m${ARCH}" | ||
export CXXFLAGS="${CXXFLAGS} -m${ARCH}" | ||
|
||
mkdir build_libradolan && cd build_libradolan | ||
cmake -D CMAKE_INSTALL_PREFIX=$PREFIX \ | ||
-D WITH_TESTS=YES \ | ||
$SRC_DIR | ||
|
||
mkdir ../build | ||
cd ../build | ||
cmake $SRC_DIR \ | ||
-DCMAKE_INSTALL_PREFIX=$PREFIX \ | ||
-DWITH_TESTS=YES | ||
make VERBOSE=1 | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters