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)
# ------