I don't get that. HDF5_IS_STATIC is a local variable that tells me if cmake decided to use the static hdf5 library (which it will do if hdf5 is built static only). This is off by default (0).