Commit graph

4 commits

Author SHA1 Message Date
Paul Romano
13113ca820 Fixes in FindHDF5.cmake for Intel Xeon Phi.
Before, -lz -ldl -lm -lrt would be turned into absolute paths. This doesn't work
for the Xeon Phi where we need to cross-compile. The Intel compiler
automatically adds the libraries with the correct architecture as long as -l
arguments are passed as is.
2015-09-14 10:48:19 +07:00
Paul Romano
b1f4597e23 unset a few variables in FindHDF5.cmake 2015-09-13 12:08:18 +07:00
Paul Romano
3fb6f99ecd Update FindHDF5 based on Brad King comments 2015-09-04 12:51:18 +07:00
Paul Romano
3c1ba76f95 Rely on FindHDF5 rather than h5fc and h5pfc scripts
The FindHDF5.cmake packaged with CMake is broken in a number of respects. The HL
components don't work (debian has a patch in cmake-data). It's also impossible
to prefer a parallel installation if both h5fc and h5pfc appear on your
PATH. Finally, hdf5_hl is not included in the list of libraries needed for the
Fortran_HL component. A local version of FindHDF5 is used here which fixes all
these issues. This enables one to compile OpenMC with MPI + serial HDF5 if
needed by introducing the PHDF5 preprocessor flag.
2015-09-04 12:51:18 +07:00