Fixed cmake bug with NO_LAPACK=1
authorZhang Xianyi <traits.zhang@gmail.com>
Wed, 19 Aug 2015 03:43:42 +0000 (22:43 -0500)
committerZhang Xianyi <traits.zhang@gmail.com>
Wed, 19 Aug 2015 03:43:42 +0000 (22:43 -0500)
cmake/f_check.cmake

index e189b68..e8fe4bf 100644 (file)
@@ -27,7 +27,10 @@ if (MSVC)
 endif ()
 
 if (NOT NO_LAPACK)
-enable_language(Fortran)
+  enable_language(Fortran)
+else()
+  include(CMakeForceCompiler)
+  CMAKE_FORCE_Fortran_COMPILER(gfortran GNU)
 endif()
 
 if (NOT ONLY_CBLAS)