From aa2a1f2a91e5137b60f903e5c8952a957238362f Mon Sep 17 00:00:00 2001 From: Baptiste Mouginot Date: Wed, 24 Feb 2021 15:54:53 -0600 Subject: [PATCH 1/2] add compatibility flag required to build PyNE against hdf5@1.12+ --- src/pyne/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pyne/CMakeLists.txt b/src/pyne/CMakeLists.txt index 46a85d0bfc..6b21bfeca4 100644 --- a/src/pyne/CMakeLists.txt +++ b/src/pyne/CMakeLists.txt @@ -12,4 +12,8 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O0 -g") endif () +if(NOT (${HDF5_VERSION} VERSION_LESS 1.12.0)) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DH5Oget_info_by_idx_vers=1 -DH5O_info_t_vers=1 -DH5Oget_info_by_name_vers=1") + endif() + dagmc_install_library(pyne_dagmc) From 57d10dd4b576a406711bd9990f71bb9ce2bd7d26 Mon Sep 17 00:00:00 2001 From: Baptiste Mouginot Date: Wed, 24 Feb 2021 15:58:32 -0600 Subject: [PATCH 2/2] news --- news/PR-0728.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 news/PR-0728.rst diff --git a/news/PR-0728.rst b/news/PR-0728.rst new file mode 100644 index 0000000000..ffd0dce82a --- /dev/null +++ b/news/PR-0728.rst @@ -0,0 +1,13 @@ +**Added:** None + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** +- adding special build flag to enable old hdf5 interface for PyNE when compiling + against hdf5@1.12+ + +**Security:** None