## ---------------------------------------------------------------------
##
-## Copyright (C) 2012 - 2015 by the deal.II authors
+## Copyright (C) 2012 - 2016 by the deal.II authors
##
## This file is part of the deal.II library.
##
"Could not find a sufficient MPI version: "
"Your MPI implementation must define MPI_SEEK_SET.")
SET(MPI_ADDITIONAL_ERROR_STRING
- "Your MPI implementation must define MPI_SEEK_SET.")
+ "Your MPI implementation must define MPI_SEEK_SET.\n")
+ SET(${var} FALSE)
+ ENDIF()
+
+ CHECK_COMPILER_SETUP(
+ "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_SAVED} ${MPI_CXX_FLAGS}"
+ "${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_SAVED} ${MPI_LINKER_FLAGS}"
+ MPI_WORKING_COMPILER
+ ${DEAL_II_LIBRARIES} ${MPI_LIBRARIES}
+ )
+
+ IF(NOT MPI_WORKING_COMPILER)
+ MESSAGE(STATUS "Could not find a sufficient MPI installation: "
+ "Unable to compile a simple test program."
+ )
+ SET(MPI_ADDITIONAL_ERROR_STRING
+ ${MPI_ADDITIONAL_ERROR_STRING}
+ "Unable to compile and link a simple test program with your MPI installation. \n"
+ )
SET(${var} FALSE)
ENDIF()
ENDIF()