Set the HDF5_DIR environment variable to the location of the CMake files in the built HDF5 binary distribution. They are located in the
share/cmake/hdf5/ directory on Unix and in the
cmake directory on Windows.
- You can set the HDF5_DIR environment variable within a CMake application:
set(ENV $HDF5_DIR <mypath>/HDF5-1.N.N-Linux/HDF_Group/HDF5/1.N.N/share/cmake/hdf5)
- Alternately, set HDF5_DIR as you would other environment variables: