--- packages/epetraext/test/inout/CMakeLists.txt.orig	2019-04-24 13:19:22.095883629 +0200
+++ packages/epetraext/test/inout/CMakeLists.txt	2019-04-24 13:19:36.249871114 +0200
@@ -11,6 +11,7 @@
 
 TRIBITS_ADD_EXECUTABLE_AND_TEST(
   inout_hdf5_test
+  EXCLUDE_IF_NOT_TRUE ${PACKAGE_NAME}_ENABLE_HDF5
   SOURCES
     EpetraExt_HDF5_UnitTest.cpp
   COMM serial mpi
