mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user