Skip to content

FindHDF5: use CMakeFiles for temporary files

Seth R Johnson requested to merge sethrj/cmake:findhdf5-temporary-files into master

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.

Merge request reports