[CMake] Status of FindHDF5.cmake in CMake?
kent williams
nkwmailinglists at gmail.com
Thu Apr 7 12:51:22 EDT 2011
Hi! I'm working on some classes for ITK4 that use the HDF library, and
I've run into a quandary.
If you build & install HDF5 with CMake, you MUST use
find_package(HDF5 [REQUIRED] NO_MODULE)
in order to use HDF5. If you use the more natural command
find_package(HDF5 [REQUIRED])
then the cmake/share/cmake-2.8/Modules/FindHDF5.cmake fails to find
the installation.
The FindHDF5.cmake depends on HDF5 using the autoconf-based build
system, and searches for one of the HDF utilities to run.
This doesn't feel like a good situation. Shouldn't the FindHDF5.cmake
perhaps look for both sorts of HDF5 installs?
More information about the CMake
mailing list