Fix Fortran compiler detection

This commit is contained in:
Gael Guennebaud
2014-02-13 09:21:13 +01:00
parent 7ea6ef8969
commit 14422decc2
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)