Replacing BLAS/LAPACK detection through cmake