diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-09-21 10:27:38 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-09-21 10:27:38 +0200 |
commit | ebfed5a51298fc03ad0c39c18b3ca723014d5c85 (patch) | |
tree | b506e422eecac2d1358dd8b1b9b9a0a7823d02b3 /lapack | |
parent | 1d796acb05c20b09e9b8389e3919634ddf02e3ec (diff) |
Enable incomplete BLAS/Lapack builds when no fortran compiler has been found.
Works here with gcc. Hopefully this will work for MSVC too.
Diffstat (limited to 'lapack')
-rw-r--r-- | lapack/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lapack/CMakeLists.txt b/lapack/CMakeLists.txt index 32fd6ad81..ad7c04274 100644 --- a/lapack/CMakeLists.txt +++ b/lapack/CMakeLists.txt @@ -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) + |