set ( MPI_LIBRARY ${MPI_HOME}/lib/libmpi.so )
endif(${MPI_LIBRARY} STREQUAL "MPI_LIBRARY-NOTFOUND")
message ( STATUS "MPI executable is ${MPIEXEC}" )
+ if (NOT DEFINED CMAKE_CXX_COMPILER)
+ set(CMAKE_CXX_COMPILER ${MPI_HOME}/bin/mpic++)
+ endif(NOT DEFINED CMAKE_CXX_COMPILER)
+ message ( STATUS "MPI C++ compiler is ${CMAKE_CXX_COMPILER}" )
+ if (NOT DEFINED CMAKE_C_COMPILER)
+ set(CMAKE_C_COMPILER ${MPI_HOME}/bin/mpicc)
+ endif(NOT DEFINED CMAKE_C_COMPILER)
+ message ( STATUS "MPI C compiler is ${CMAKE_C_COMPILER}" )
else( DEFINED ENV{MPI_HOME} OR MPI_HOME )
set(SOLVERLAB_WITH_MPI OFF)
endif( DEFINED ENV{MPI_HOME} OR MPI_HOME )