1) added warnings suppression if find_package(MPI) failes to find MPI
authorDawid Jagiela <lightnir@chem.univ.gda.pl>
Fri, 25 Apr 2014 07:54:20 +0000 (03:54 -0400)
committerDawid Jagiela <lightnir@chem.univ.gda.pl>
Fri, 25 Apr 2014 07:54:20 +0000 (03:54 -0400)
2) removed non-standardold MPI paths - should be passed by cmake variables directly

CMakeLists.txt

index f933d69..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)
 
@@ -136,14 +136,12 @@ else(MPIF_LOCAL_DIR)
        ${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