From f031713ba3c998a655ffd7e1e4c322df6b52d823 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 15 Jul 2010 15:02:31 +0000 Subject: [PATCH] Addition of MPI2 conditional compilation tag. --- salome_adm/cmake_files/FindMPI.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) # ------ -- 2.39.2