]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Addition of MPI2 conditional compilation tag.
authorageay <ageay>
Thu, 15 Jul 2010 15:02:31 +0000 (15:02 +0000)
committerageay <ageay>
Thu, 15 Jul 2010 15:02:31 +0000 (15:02 +0000)
salome_adm/cmake_files/FindMPI.cmake

index 51536665f0263d06e33bd9812841d816a30aad4f..29155aab6321d3ca523638de5d4bbf582c758147 100644 (file)
@@ -118,11 +118,11 @@ ENDIF(MPI_STATUS)
 IF(MPI_STATUS)
   include(CheckSymbolExists)
   SET(CMAKE_REQUIRED_LIBRARIES ${MPI_LIBS})
-  CHECK_SYMBOL_EXISTS(MPI_Publish_name ${MPI_INCLUDE_DIR}/mpi.h HAVE_MPI2)
-  IF(HAVE_MPI2)
+  CHECK_SYMBOL_EXISTS(MPI_Publish_name ${MPI_INCLUDE_DIR}/mpi.h MPI2_IS_OK)
+  IF(MPI2_IS_OK)
     MESSAGE(STATUS "Your mpi implemtentation is compatible with mpi2 ... adding -DHAVE_MPI2")
     SET(MPI_INCLUDES ${MPI_INCLUDES} -DHAVE_MPI2)
-  ENDIF(HAVE_MPI2)
+  ENDIF(MPI2_IS_OK)
 ENDIF(MPI_STATUS)
 
 # ------