Right now, MPI is optional, and many programs aren't built built if MPI isn't found (the if (${MPI_Fortran_FOUND}) conditionals in the CMakeLists.)
However, SCALAPACK is a required dependency, which probably isn't what's wanted if MPI isn't found.
This PR moves the checks for SCALAPACK into an existing if (${MPI_Fortran_FOUND}) test. It also adds a missing if (${MPI_Fortran_FOUND}) test to the build for bsr_breit3_mpi and bsr_breit4_mpi.
Right now, MPI is optional, and many programs aren't built built if MPI isn't found (the
if (${MPI_Fortran_FOUND})
conditionals in the CMakeLists.)However, SCALAPACK is a required dependency, which probably isn't what's wanted if MPI isn't found.
This PR moves the checks for SCALAPACK into an existing
if (${MPI_Fortran_FOUND})
test. It also adds a missingif (${MPI_Fortran_FOUND})
test to the build forbsr_breit3_mpi
andbsr_breit4_mpi
.