Fix Fortran compiler detection

(grafted from 14422decc2
)
This commit is contained in:
Gael Guennebaud
2014-02-13 09:21:13 +01:00
parent b5333b6760
commit 24e33a0d86
3 changed files with 7 additions and 1 deletions

View File

@@ -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)