handle missing lack of fortran compiler more gracefully
# NEED2UNDERSCORES
if (NOT NO_LAPACK)
+ check_language(Fortran)
+ if(CMAKE_Fortran_COMPILER)
enable_language(Fortran)
+ else()
+ message(STATUS "No Fortran compiler found, can build only BLAS but not LAPACK")
+ set (NOFORTRAN 1)
+ set (NO_LAPACK 1)
+ endif()
else()
include(CMakeForceCompiler)
CMAKE_FORCE_Fortran_COMPILER(gfortran GNU)
