From 92959aa5f36bab970277c93e02f4d1bf5d52a364 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 12 Jan 2009 12:51:40 +0000 Subject: [PATCH] add the possiblity to disable Fortran (workaround cmake's bug --- test/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 268440ff4..723885eb2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -26,9 +26,10 @@ else(CHOLMOD_FOUND) 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)