deprecate old mpi variables
@@ -38,3 +38,27 @@ IF(DEFINED F90_ENABLE)
FORCE_VARIABLE(EXAMPLES_ENABLE_F90 BOOL "Build ARKode Fortran90 examples" ${F90_ENABLE})
UNSET(F90_ENABLE)
ENDIF()
+
+if(DEFINED MPI_MPICC)
+ print_deprecated(MPI_MPICC MPI_C_COMPILER)
+ force_variable(MPI_C_COMPILER BOOL "MPI C compiler" ${MPI_MPICC})
+ unset(MPI_MPICC CACHE)
+endif()
+
+if(DEFINED MPI_MPICXX)
+ print_deprecated(MPI_MPICXX MPI_CXX_COMPILER)
+ force_variable(MPI_CXX_COMPILER BOOL "MPI C++ compiler" ${MPI_MPICXX})
+ unset(MPI_MPICXX CACHE)
+endif()
+
+if((DEFINED MPI_MPIF77) OR (DEFINED MPI_MPIF90))
+ if(DEFINED MPI_MPIF90)
+ print_warning("MPI_MPIF77 and MPI_MPIF90 are deprecated and will be removed in the future." "Copying MPI_MPIF90 value to MPI_Fortran_COMPILER")
+ force_variable(MPI_Fortran_COMPILER BOOL "MPI Fortran compiler" ${MPI_MPIF90})
+ else()
+ print_warning("MPI_MPIF77 and MPI_MPIF90 are deprecated and will be removed in the future." "Copying MPI_MPIF77 value to MPI_Fortran_COMPILER")
+ force_variable(MPI_Fortran_COMPILER BOOL "MPI Fortran compiler" ${MPI_MPIF77})
+ endif()
+ unset(MPI_MPIF77 CACHE)
+ unset(MPI_MPIF90 CACHE)
+endif()
\ No newline at end of file
