From 14422decc2583e556352408983f4f8fda3054c70 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 13 Feb 2014 09:21:13 +0100 Subject: Fix Fortran compiler detection --- lapack/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lapack') diff --git a/lapack/CMakeLists.txt b/lapack/CMakeLists.txt index 7e7444326..9883d4c72 100644 --- a/lapack/CMakeLists.txt +++ b/lapack/CMakeLists.txt @@ -7,6 +7,9 @@ workaround_9220(Fortran EIGEN_Fortran_COMPILER_WORKS) if(EIGEN_Fortran_COMPILER_WORKS) enable_language(Fortran OPTIONAL) + if(NOT CMAKE_Fortran_COMPILER) + set(EIGEN_Fortran_COMPILER_WORKS OFF) + endif() endif() add_custom_target(lapack) -- cgit v1.2.3