FindHDF5: use CMakeFiles for temporary files
By default, FindHDF5
invokes the h5cc
compiler in the current binary directory, which can leave a.out
, cmake_hdf5_test.o
, and foo.h5
in the project binary dir. This change runs h5cc
inside the CMakeFiles
directory like the other try_compile
statements.