Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Adjustments to build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Sep 23, 2023
1 parent c510683 commit b938f21
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions buildscripts/build_hdf5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ else
fi

ARGLIST="-DCMAKE_INSTALL_PREFIX:PATH=${HDF5_ROOT} \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DHDF5_ALLOW_EXTERNAL_SUPPORT:STRING=TGZ \
-DBUILD_ZLIB_WITH_FETCHCONTENT:BOOL=ON \
-DZLIB_USE_LOCALCONTENT:BOOL=OFF \
Expand Down
1 change: 1 addition & 0 deletions buildscripts/build_netcdf-c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ ZLIB_ROOT=${PREFIX}
cmake -B build -S . -G Ninja \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DHDF5_DIR:PATH=${HDF5_ROOT}/cmake \
-DHDF5_ROOT:PATH=${HDF5_ROOT} \
-DCMAKE_INSTALL_PREFIX:STRING="${NCDIR}" \
-DENABLE_DAP:BOOL=OFF \
-DENABLE_BYTERANGE:BOOL=OFF \
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/set_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FCFLAGS="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}"
FFFLAGS="${FCFLAGS}"
CFLAGS="${FCFLAGS} -Wno-deprecated-non-prototype"
CXXFLAGS="${CFLAGS}"
HDF5_ROOT="${PREFIX}/HDF_Group/HDF5/1.14.2"
HDF5_ROOT="${PREFIX}"
HDF5_LIBDIR="${HDF5_ROOT}/lib"
HDF5_INCLUDE_DIR="${HDF5_ROOT}/include"
HDF5_PLUGIN_PATH="${HDF5_LIBDIR}/plugin"
Expand Down
17 changes: 17 additions & 0 deletions buildscripts/set_environment_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# Sets environment flags on Linux
set -a
PREFIX="/usr/local"
NCDIR="${PREFIX}"
NFDIR="${PREFIX}"
NETCDF_FORTRAN_HOME="${NFDIR}"
NETCDF_FORTRAN_INCLUDE="${NFDIR}/include"
HDF5_ROOT="${PREFIX}"
HDF5_LIBDIR="${HDF5_ROOT}/lib"
HDF5_INCLUDE_DIR="${HDF5_ROOT}/include"
HDF5_PLUGIN_PATH="${HDF5_LIBDIR}/plugin"
LD_LIBRARY_PATH="${PREFIX}/lib"
CPATH="${PREFIX}/include:"
HDF5_DIR="${HDF5_ROOT}/cmake"
PATH="${HDF5_ROOT}/bin:${PATH}"
CMAKE_INSTALL_LIBDIR="lib"

0 comments on commit b938f21

Please sign in to comment.