add the possiblity to disable Fortran (workaround cmake's bug
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 268440f..723885e 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -26,9 +26,10 @@
   message("CHOLMOD not found, this optional backend won't be tested")
 endif(CHOLMOD_FOUND)
 
-if(NOT MSVC)
+option(EIGEN_TEST_NO_FORTRAN "Disable Fortran" OFF)
+if(NOT MSVC AND NOT EIGEN_TEST_NO_FORTRAN)
   enable_language(Fortran OPTIONAL)
-endif(NOT MSVC)
+endif(NOT MSVC AND NOT EIGEN_TEST_NO_FORTRAN)
 
 find_package(Umfpack)
 if(UMFPACK_FOUND)