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:
@@ -13,15 +13,16 @@ if( NOT DEFINED EIGEN_Fortran_COMPILER_WORKS OR EIGEN_Fortran_COMPILER_WORKS)
|
||||
|
||||
endif()
|
||||
|
||||
if(CMAKE_Fortran_COMPILER_WORKS)
|
||||
|
||||
add_custom_target(lapack)
|
||||
include_directories(../blas)
|
||||
|
||||
set(EigenLapack_SRCS
|
||||
single.cpp double.cpp complex_single.cpp complex_double.cpp
|
||||
single.cpp double.cpp complex_single.cpp complex_double.cpp ../blas/xerbla.cpp
|
||||
)
|
||||
|
||||
if(CMAKE_Fortran_COMPILER_WORKS)
|
||||
|
||||
get_filename_component(eigen_full_path_to_reference_to_reference_lapack "./reference/" ABSOLUTE)
|
||||
if(EXISTS ${eigen_full_path_to_reference_to_reference_lapack})
|
||||
set(EigenLapack_SRCS ${EigenLapack_SRCS}
|
||||
@@ -357,6 +358,8 @@ reference/ctbcon.f reference/dormhr.f reference/sla_
|
||||
)
|
||||
endif()
|
||||
|
||||
endif(CMAKE_Fortran_COMPILER_WORKS)
|
||||
|
||||
add_library(eigen_lapack_static ${EigenLapack_SRCS})
|
||||
add_library(eigen_lapack SHARED ${EigenLapack_SRCS})
|
||||
|
||||
@@ -373,4 +376,4 @@ install(TARGETS eigen_lapack eigen_lapack_static
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
||||
# add_subdirectory(testing)
|
||||
endif(CMAKE_Fortran_COMPILER_WORKS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user