VTK imports buggy FindHDF5.cmake from CMAKE
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In the file VTK/CMake/FindHDF5.cmake, CMake's own FindHDF5.cmake is included directly like this:
include the default FindHDF5.cmake.
include(${CMAKE_ROOT}/Modules/FindHDF5.cmake)
Unfortunately, that file is buggy and does not work correctly on Windows, see CMake bug http://public.kitware.com/Bug/view.php?id=14111
There is a viable workaround for this problem by calling find_package(HDF5 NO_MODULE). The NO_MODULE keyword prevents CMake from using the buggy CMake-supplied file, and instead helps to find a correct version supplied by the HDF5 project. However, this does not work if the buggy file is included with an (almost) hard-coded file location like above.
I tried simply adding find_package(HDF5 NO_MODULE), but this did not work directly because the strategy of importing HDF5 in VTK is a bit more involved than just this file. So there is definitely some work to be done, yet.