Fixed cmake bug with NO_LAPACK=1

This commit is contained in:
Zhang Xianyi 2015-08-18 22:43:42 -05:00
parent f8eba3d548
commit 17ee2237c3
1 changed files with 4 additions and 1 deletions

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