From ebfed5a51298fc03ad0c39c18b3ca723014d5c85 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 21 Sep 2011 10:27:38 +0200 Subject: Enable incomplete BLAS/Lapack builds when no fortran compiler has been found. Works here with gcc. Hopefully this will work for MSVC too. --- lapack/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lapack') 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) + -- cgit v1.2.3