IF(ARPACK_FOUND)
SET(ARPACK_LIBRARIES
- ${ARPACK_LIBRARY} ${LAPACK_LIBRARIES}
+ ${ARPACK_LIBRARY}
+ ${LAPACK_LIBRARIES}
)
SET(ARPACK_LINKER_FLAGS
${LAPACK_LINKER_FLAGS}
lib${LIB_SUFFIX} lib64 lib
)
-SET(_output ${HDF5_LIBRARY} ${HDF5_HL_LIBRARY})
+SET(_output ${HDF5_HL_LIBRARY} ${HDF5_LIBRARY})
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HDF5 DEFAULT_MSG
_output # Cosmetic: Gives nice output
- HDF5_LIBRARY
HDF5_HL_LIBRARY
+ HDF5_LIBRARY
HDF5_INCLUDE_DIR
)
${HDF5_INCLUDE_DIR}
)
SET(HDF5_LIBRARIES
- ${HDF5_LIBRARY}
${HDF5_HL_LIBRARY}
+ ${HDF5_LIBRARY}
+ ${MPI_C_LIBRARIES} # for good measure
)
#
#
# Metis is usually pretty self contained. So no external dependencies
-# so far... But there could be dependencies on pcre and mpi...
+# so far. But there could be dependencies on pcre and mpi...
#
-# Link in MPI unconditionally (if found)
+# Link in MPI unconditionally (if found).
#
FIND_PATH(METIS_INCLUDE_DIR metis.h
# (We'll rely on the user of FindMUMPS, setting up mpi *cough*)
#
FIND_PACKAGE(SCALAPACK) # which will also include lapack and blas
+FIND_PACKAGE(METIS)
-#
-# TODO: mumps might link to scotch and or metis as well. Ignore this for
-# now. :-]
-#
FIND_PATH(MUMPS_INCLUDE_DIR dmumps_c.h
HINTS
${MUMPS_COMMON_LIBRARY}
${PORD_LIBRARY}
${SCALAPACK_LIBRARIES}
- ${MPI_Fortran_LIBRARIES} # For good measure
+ ${METIS_LIBRARIES} # for good measure
+ ${MPI_Fortran_LIBRARIES} # for good measure
)
SET(MUMPS_LINKER_FLAGS
${SCALAPACK_LINKER_FLAGS}
SET(_output ${P4EST_LIBRARY} ${SC_LIBRARY})
FIND_PACKAGE_HANDLE_STANDARD_ARGS(P4EST DEFAULT_MSG
+ _output # Cosmetic: Gives nice output
P4EST_LIBRARY
SC_LIBRARY
P4EST_INCLUDE_DIR
${SCALAPACK_LIBRARY}
${LAPACK_LIBRARIES}
${BLACS_LIBRARIES}
+ ${MPI_Fortran_LIBRARIES} # for good measure
)
SET(SCALAPACK_LINKER_FLAGS
${LAPACK_LINKER_FLAGS}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams