MESSAGE(STATUS "MPI include ${MPI_INCLUDE_TO_FIND} found in ${MPI_INCLUDES}")
SET(MPI_INCLUDE_DIR ${MPI_INCLUDES})
- SET(MPI_INCLUDES -I${MPI_INCLUDES})
+ SET(MPI_INCLUDES_DIR ${MPI_INCLUDES})
+ SET(MPI_INCLUDES -I${MPI_INCLUDES})# to remove
# ------
IF(MPI_LIB_FOUND)
IF(MPI_LIB_mpi_cxx AND MPI_LIB_mpi)
SET(MPI_LIBS ${MPI_LIB_mpi_cxx} ${MPI_LIB_mpi})
- SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)
+ SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)# to remove
+ SET(MPI_FLAGS -DOMPI_IGNORE_CXX_SEEK)
ELSEIF(MPI_LIB_mpi_cxx)
SET(MPI_LIBS ${MPI_LIB_mpi_cxx})
- SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)
+ SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)# to remove
+ SET(MPI_FLAGS -DOMPI_IGNORE_CXX_SEEK)
ELSEIF(MPI_LIB_mpi)
SET(MPI_LIBS ${MPI_LIB_mpi})
- SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)
+ SET(MPI_INCLUDES ${MPI_INCLUDES} -DOMPI_IGNORE_CXX_SEEK)# to remove
+ SET(MPI_FLAGS -DOMPI_IGNORE_CXX_SEEK)
ELSEIF(MPI_LIB_mpich)
SET(MPI_LIBS ${MPI_LIB_mpich})
- SET(MPI_INCLUDES ${MPI_INCLUDES} -DMPICH_IGNORE_CXX_SEEK)
+ SET(MPI_INCLUDES ${MPI_INCLUDES} -DMPICH_IGNORE_CXX_SEEK)# to remove
+ SET(MPI_FLAGS -DMPICH_IGNORE_CXX_SEEK)
ENDIF()
ELSE(MPI_LIB_FOUND)
MESSAGE(STATUS "MPI lib not found, check your MPI installation.")
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)
+ SET(MPI_INCLUDES ${MPI_INCLUDES} -DHAVE_MPI2)# to remove
+ SET(MPI_FLAGS ${MPI_FLAGS} -DHAVE_MPI2)
ENDIF(MPI2_IS_OK)
ENDIF(MPI_STATUS)