Commit 581fc325 authored by T.J. Corona's avatar T.J. Corona

Patch moab to set hdf5 library type flag

parent a443e7db
Pipeline #132697 passed with stage
......@@ -6,5 +6,8 @@ superbuild_apply_patch(moab quote-compiler-path
superbuild_apply_patch(moab remove-flags-from-link-list
"Remove CMake error where linker flags are a part of the link library list")
superbuild_apply_patch(moab hdf5-library-type
"Explicitly state that hdf5's library is shared as a build flag")
superbuild_apply_patch(moab msvc-fixes
"Many windows-specific fixes for moab (not developed on windows).")
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5dbd4517..0ee987ae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -272,6 +272,7 @@ if ( ENABLE_HDF5 )
endif ( CURL_FOUND )
set( MOAB_LIBS ${HDF5_LIBRARIES} ${MOAB_LIBS} )
include_directories( ${HDF5_INCLUDE_DIR} src/io/mhdf/include )
+ add_definitions(-DH5_BUILT_AS_DYNAMIC_LIB)
endif ( ENABLE_HDF5 )
set (MOAB_HAVE_NETCDF OFF CACHE INTERNAL "Found necessary NetCDF components. Configure MOAB with it." )
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