]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Cleanup
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Jul 2013 17:44:30 +0000 (17:44 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Jul 2013 17:44:30 +0000 (17:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@29975 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindARPACK.cmake
deal.II/cmake/modules/FindHDF5.cmake
deal.II/cmake/modules/FindMETIS.cmake
deal.II/cmake/modules/FindMUMPS.cmake
deal.II/cmake/modules/FindP4EST.cmake
deal.II/cmake/modules/FindSCALAPACK.cmake

index a57f307961e6bf37390da493386cf9bf741a2ac8..47e75d3cf901694226c5b7c7292aad134d5c139f 100644 (file)
@@ -48,7 +48,8 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(ARPACK DEFAULT_MSG
 
 IF(ARPACK_FOUND)
   SET(ARPACK_LIBRARIES
-    ${ARPACK_LIBRARY} ${LAPACK_LIBRARIES}
+    ${ARPACK_LIBRARY}
+    ${LAPACK_LIBRARIES}
     )
   SET(ARPACK_LINKER_FLAGS
     ${LAPACK_LINKER_FLAGS}
index 12675f7ed2407a811b87a54d37c71617586589c8..c5006ca7927433f995d8694b7e20f23e39be72a1 100644 (file)
@@ -47,11 +47,11 @@ FIND_LIBRARY(HDF5_HL_LIBRARY NAMES hdf5_hl
     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
   )
 
@@ -60,8 +60,9 @@ IF(HDF5_FOUND)
     ${HDF5_INCLUDE_DIR}
     )
   SET(HDF5_LIBRARIES
-    ${HDF5_LIBRARY}
     ${HDF5_HL_LIBRARY}
+    ${HDF5_LIBRARY}
+    ${MPI_C_LIBRARIES} # for good measure
     )
 
   #
index be83ff3e89a9a7711ea7afedca46bfb71bec4ee0..c6a5949ea585816e1a991a7d6e7821083b889035 100644 (file)
@@ -27,9 +27,9 @@ SET_IF_EMPTY(METIS_DIR "$ENV{METIS_DIR}")
 
 #
 # 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
index 22ee16a703c914af4142b604c293d104e1ba385a..0a9d9a7fe0b82e9822128e0ee756da82bd4ca35e 100644 (file)
@@ -31,11 +31,8 @@ INCLUDE(FindPackageHandleStandardArgs)
 # (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
@@ -91,7 +88,8 @@ IF(MUMPS_FOUND)
     ${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}
index 3aad02abdf5a446d958279552c078222bf8c5135..1ea765df015ad72ef935f40127229bf1767f7258 100644 (file)
@@ -82,6 +82,7 @@ FIND_LIBRARY(SC_LIBRARY
 
 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
index 5b06ce3233b8c1526f86a6b1b36fb2ff81c526d4..16a1d13cd63ee7b00ccf1e50c0cd5f1c975b168b 100644 (file)
@@ -76,6 +76,7 @@ IF(SCALAPACK_FOUND)
     ${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


Typeset in Trocchi and Trocchi Bold Sans Serif.