1) added warnings suppression if find_package(MPI) failes to find MPI
[unres.git] / CMakeLists.txt
index 5f701f7..b6c3526 100644 (file)
@@ -120,8 +120,8 @@ option(UNRES_NA_MMCE "Kompilujemy na mmmce?" OFF )
 # MPI stuff
 #=================================
 
-# Note for the future - use finde package to get MPI 
-find_package(MPI)
+# Note for the future - use find package to get MPI 
+find_package(MPI QUIET)
 
 #if(MPI_LIBRARY)
 
@@ -134,15 +134,14 @@ if(MPIF_LOCAL_DIR)
 else(MPIF_LOCAL_DIR)
   find_library(MPIF_LIBRARY NAMES mpi mpich PATHS 
        ${MPI_LIBRARY}
+       ${MPI_LIBRARY}/../
        ${MPI_EXTRA_LIBRARY}
-       /users/local/mpi64/mpich-1.2.7p1/lib 
        /usr/lib
         /usr/local/lib
         /usr/local/mpi/lib
   )
   find_path( MPIF_INCLUDE_DIRECTORIES NAMES  mpif.h PATHS
        ${MPI_INCLUDE_PATH}
-       /users/local/mpi64/mpich-1.2.7p1/include
        /usr/include
        /usr/local/include   
        /usr/include/mpi