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

Commit

Permalink
Fixed a few lingering issues with the Mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Sep 22, 2023
1 parent d4c8dcb commit 2aab087
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
22 changes: 14 additions & 8 deletions buildscripts/build_hdf5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,28 @@ else
SZIP_LIBRARY="${SZIP_ROOT}/lib/libsz.so"
fi

cmake -B build -C ./config/cmake/cacheinit.cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX:PATH=${HDF5_ROOT} \
-DHDF5_ALLOW_EXTERNAL_SUPPORT:STRING="TGZ" \
ARGLIST="-DCMAKE_INSTALL_PREFIX:PATH=${HDF5_ROOT} \
-DHDF5_ALLOW_EXTERNAL_SUPPORT:STRING=TGZ \
-DBUILD_ZLIB_WITH_FETCHCONTENT:BOOL=ON \
-DZLIB_USE_LOCALCONTENT:BOOL=OFF \
-DZLIB_TGZ_ORIGNAME:STRING="${ZLIB_TGZ_NAME}" \
-DZLIB_TGZ_ORIGPATH:STRING="${ZLIB_TGZ_ORIGPATH}" \
-DZLIB_TGZ_ORIGNAME:STRING=${ZLIB_TGZ_NAME} \
-DZLIB_TGZ_ORIGPATH:STRING=${ZLIB_TGZ_ORIGPATH} \
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON \
-DBUILD_SZIP_WITH_FETCHCONTENT:BOOL=ON \
-DLIBAEC_USE_LOCALCONTENT:BOOL=OFF \
-DLIBAEC_TGZ_ORIGNAME:STRING="${LIBAEC_TGZ_NAME}" \
-DLIBAEC_TGZ_ORIGPATH:STRING="${LIBAEC_TGZ_ORIGPATH}" \
-DLIBAEC_TGZ_ORIGNAME:STRING=${LIBAEC_TGZ_NAME} \
-DLIBAEC_TGZ_ORIGPATH:STRING=${LIBAEC_TGZ_ORIGPATH} \
-DHDF5_ENABLE_PLUGIN_SUPPORT:BOOL=OFF \
-DHDF5_BUILD_CPP_LIB:BOOL=OFF \
-DHDF5_BUILD_FORTRAN:BOOL=OFF \
-DHDF5_BUILD_JAVA:BOOL=OFF .
-DHDF5_BUILD_JAVA:BOOL=OFF"


if [ $OS = "MacOSX" ]; then
ARGLIST="${ARGLIST} -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF"
fi

cmake -B build -C ./config/cmake/cacheinit.cmake -G Ninja ${ARGLIST} .

cmake --build build -j${NPROC}
if [ -w ${PREFIX} ]; then
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ HDF5_ROOT="${PREFIX}/HDF_Group/HDF5/1.14.2"
HDF5_LIBDIR="${HDF5_ROOT}/lib"
HDF5_INCLUDE_DIR="${HDF5_ROOT}/include"
HDF5_PLUGIN_PATH="${HDF5_LIBDIR}/plugin"
NCDIR="${PREFIX}/netCDF-C"
NFDIR="${PREFIX}/netCDF-Fortran"
NCDIR="${PREFIX}"
NFDIR="${PREFIX}"
NETCDF_FORTRAN_HOME="${NFDIR}"
NETCDF_FORTRAN_INCLUDE="${NFDIR}/include"
FC="$(command -v gfortran-12)"
Expand Down

0 comments on commit 2aab087

Please sign in to comment.