--- a/cmake/thirdParties.cmake
+++ b/cmake/thirdParties.cmake
@@ -29,8 +29,8 @@ if(MATIO_WITH_HDF5)
     endif()
 endif()
 
-if(HDF5_FOUND)
     set(HAVE_HDF5 1)
+if(0)
     add_library(HDF5::HDF5 INTERFACE IMPORTED)
     if(MATIO_USE_CONAN AND TARGET CONAN_PKG::hdf5)
         # target from Conan
