Enable incomplete BLAS/Lapack builds when no fortran compiler has been found.

Works here with gcc. Hopefully this will work for MSVC too.
This commit is contained in:
Gael Guennebaud
2011-09-21 10:27:38 +02:00
parent 1d796acb05
commit ebfed5a512
4 changed files with 34 additions and 26 deletions

View File

@@ -4,15 +4,11 @@ include_directories(../../test ../../unsupported ../../Eigen
set(SPARSE_LIBS "")
# configure blas/lapack
if(CMAKE_Fortran_COMPILER_WORKS)
set(BLAS_FOUND TRUE)
set(LAPACK_FOUND TRUE)
set(BLAS_LIBRARIES eigen_blas_static)
set(LAPACK_LIBRARIES eigen_lapack_static)
else()
# TODO search for default blas/lapack
endif()
# configure blas/lapack (use Eigen's by default)
set(BLAS_FOUND TRUE)
set(LAPACK_FOUND TRUE)
set(BLAS_LIBRARIES eigen_blas)
set(LAPACK_LIBRARIES eigen_lapack)
find_package(Cholmod)
if(CHOLMOD_FOUND AND BLAS_FOUND AND LAPACK_FOUND)