]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Add the -DWITHOUT_MPI=1 possibility
authoradam <adam>
Fri, 18 Feb 2011 11:47:28 +0000 (11:47 +0000)
committeradam <adam>
Fri, 18 Feb 2011 11:47:28 +0000 (11:47 +0000)
salome_adm/cmake_files/FindMPI.cmake

index 29155aab6321d3ca523638de5d4bbf582c758147..50b53bd9f00c274620ab69c73096f0077f731945 100644 (file)
@@ -24,6 +24,10 @@ MESSAGE(STATUS "Check for MPI ...")
 # ------
 
 SET(MPI_STATUS 1)
+IF(WITHOUT_MPI OR WITH_MPI STREQUAL 0)
+  SET(MPI_STATUS 0)
+  MESSAGE(STATUS "mpi disabled from command line.")
+ENDIF(WITHOUT_MPI OR WITH_MPI STREQUAL 0)
 
 IF(WITH_MPI)
   SET(MPI_ROOT_USER ${WITH_MPI})