jagot / bsr

1 stars 3 forks source link

Make scalapack optional #6

Closed ljdursi closed 2 years ago

ljdursi commented 2 years ago

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.