try pointing to mpi variants of compilers
@@ -4,11 +4,15 @@ else
COSTA_SCALAPACK=OFF
fi
+export CC=mpicc
+export CXX=mpicxx
+
cmake \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCOSTA_SCALAPACK=$COSTA_SCALAPACK \
-DCOSTA_WITH_TESTS=ON \
+ -DBUILD_SHARED_LIBS=ON \
$CMAKE_ARG
make -j${CPU_COUNT}
