Commit a443e7db authored by T.J. Corona's avatar T.J. Corona

Moab: add patch to MOAB's custom FindHDF5 to work in SB

parent a007b083
......@@ -25,6 +25,9 @@ superbuild_apply_patch(moab disable-fortran
superbuild_apply_patch(moab export-include-dir
"Set MOAB and iMesh targets to export their installed include directories")
superbuild_apply_patch(moab find-hdf5-default-path
"When using CMake to look for HDF5, use the default path")
# By default, linux and os x cmake looks in <INSTALL_DIR>/lib/cmake for
# things. On windows, it does not. So, we set MOAB_DIR to point to the
# location of MOABConfig.cmake for everyone.
......
diff --git a/config/FindHDF5_MOAB.cmake b/config/FindHDF5_MOAB.cmake
index a29375c3..22688942 100644
--- a/config/FindHDF5_MOAB.cmake
+++ b/config/FindHDF5_MOAB.cmake
@@ -11,7 +11,7 @@ set( SZIP_ROOT "" CACHE PATH "Path to search for SZIP header and library files"
# Try to find HDF5 with the CMake finder
set(ENV{HDF5_ROOT} ${HDF5_ROOT})
-find_package(HDF5 COMPONENTS C HL NO_DEFAULT_PATH)
+find_package(HDF5 COMPONENTS C HL)
if (HDF5_FOUND)
# Translate to MOAB variables
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment