From 3b323549dabe35a6119021f95256a9240dc902e6 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 5 Dec 2023 11:33:13 -0600 Subject: [PATCH 1/2] Do not link against several transitive dependencies of HDF5 --- cmake/FindMOAB.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/FindMOAB.cmake b/cmake/FindMOAB.cmake index 0cefeb4666..92602c8917 100644 --- a/cmake/FindMOAB.cmake +++ b/cmake/FindMOAB.cmake @@ -22,6 +22,8 @@ include(${MOAB_CMAKE_CONFIG}) set(ENV{PATH} "${HDF5_DIR}:$ENV{PATH}") set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_SHARED_LIBRARY_SUFFIX}) find_package(HDF5 REQUIRED) +# Remove HDF5 transitive dependencies that are system libraries +list(FILTER HDF5_LIBRARIES EXCLUDE REGEX ".*lib(pthread|dl|m).*") set(HDF5_LIBRARIES_SHARED ${HDF5_LIBRARIES}) # CMake doesn't let you find_package(HDF5) twice so we have to do this instead if (BUILD_STATIC_LIBS) From 65fbe9758b5693cabd9df7a8cf7416699a382134 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 5 Dec 2023 11:43:08 -0600 Subject: [PATCH 2/2] Update CHANGELOG.rst --- doc/CHANGELOG.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/CHANGELOG.rst b/doc/CHANGELOG.rst index 4879bcf4cc..874ba45d6f 100644 --- a/doc/CHANGELOG.rst +++ b/doc/CHANGELOG.rst @@ -35,6 +35,7 @@ Next version * Tweak conda environment for Windows build to avoid conflicting gtest headers (#888) * Restrict cython version for MOAB (#893) * Various documentation updates (#869) + * Fix for HDF5 library linking issue (#926) v3.2.2 ====================