From: ageay Date: Thu, 15 Jul 2010 15:02:31 +0000 (+0000) Subject: Addition of MPI2 conditional compilation tag. X-Git-Tag: Plotenh~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f031713ba3c998a655ffd7e1e4c322df6b52d823;p=modules%2Fkernel.git Addition of MPI2 conditional compilation tag. --- diff --git a/salome_adm/cmake_files/FindMPI.cmake b/salome_adm/cmake_files/FindMPI.cmake index 51536665f..29155aab6 100644 --- a/salome_adm/cmake_files/FindMPI.cmake +++ b/salome_adm/cmake_files/FindMPI.cmake @@ -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) # ------