### Wrap HDF5 settings
if [ "${HDF5HOME}" != "" ]; then
-VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DPARAVIEW_USE_SYSTEM_HDF5:BOOL=OFF"
+VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DPARAVIEW_USE_SYSTEM_HDF5:BOOL=ON"
VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DHDF5_INCLUDE_DIR:STRING=${HDF5HOME}/include"
-VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DHDF5_LIBRARY:STRING=${HDF5HOME}/lib"
+VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DHDF5_LIBRARY:STRING=${HDF5HOME}/lib/libhdf5.so"
+VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=OFF"
fi
### if Mesa is pre-installed
if [ -n "$MESA_HOME" ]; then