I'm trying to build COSMA with Spack and the AMD BLAS/LAPACK/SCALAPACK libraries. In this case, Spack sets the ScaLAPACK vendor to custom, so that cmake tries the auto mode to detect the BLAS libraries. Unfortunately it stops the search after looking for OpenBLAS even though the corresponding libs are not found.
In cmake/FindBlas.cmake there is a check (line 93)
if(TARGET cosma::BLAS::${_libs}::blas)
but unfortunately the FindXXX.cmake set the target even when the libs are not found.
I'm trying to build COSMA with Spack and the AMD BLAS/LAPACK/SCALAPACK libraries. In this case, Spack sets the ScaLAPACK vendor to custom, so that cmake tries the auto mode to detect the BLAS libraries. Unfortunately it stops the search after looking for OpenBLAS even though the corresponding libs are not found.
In cmake/FindBlas.cmake there is a check (line 93)
if(TARGET cosma::BLAS::${_libs}::blas)but unfortunately the FindXXX.cmake set the target even when the libs are not found.