Skip to content

Commit

Permalink
Try bumping HDF5 build version on the Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
cjh1 committed Oct 26, 2023
1 parent ebf2d05 commit d52561b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ pip install cibuildwheel
if [[ $RUNNER_OS == "Windows" ]]; then
git clone --recursive -b 3.3.9 --depth 1 https://gitlab.com/libeigen/eigen /c/eigen
elif [[ $RUNNER_OS == "macOS" ]]; then
brew install eigen [email protected] ninja
brew link [email protected]
brew install eigen hdf5 ninja
fi
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ else()
add_library(stem ${_src} ${_vtkm_src})
endif()

if (stempy_ENABLE_HDF5 AND NOT (${HDF5_VERSION} VERSION_LESS 1.12.0))
target_compile_options(stem PRIVATE "-DH5Oget_info_by_idx_vers=1 -DH5O_info_t_vers=1")
endif()

set_property(TARGET stem PROPERTY POSITION_INDEPENDENT_CODE ON)

target_link_libraries(stem
Expand Down

0 comments on commit d52561b

Please sign in to comment.