ENH: get out of module if no fortran

This commit is contained in:
Bill Hoffman 2008-07-21 15:34:11 -04:00
parent e1a2c08628
commit 7183a632f0
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,8 @@ if(NOT _LANGUAGES_ MATCHES Fortran)
if(BLAS_FIND_REQUIRED)
message(FATAL_ERROR "FindBLAS is Fortran-only so Fortran must be enabled.")
else(BLAS_FIND_REQUIRED)
MESSAGE(STATUS "Looking for BLAS... - NOT found (Fortran not enabled)")
message(STATUS "Looking for BLAS... - NOT found (Fortran not enabled)") #
return()
endif(BLAS_FIND_REQUIRED)
endif(NOT _LANGUAGES_ MATCHES Fortran)

View File

@ -24,7 +24,8 @@ if(NOT _LANGUAGES_ MATCHES Fortran)
message(FATAL_ERROR
"FindLAPACK is Fortran-only so Fortran must be enabled.")
else(LAPACK_FIND_REQUIRED)
MESSAGE(STATUS "Looking for LAPACK... - NOT found (Fortran not enabled)")
message(STATUS "Looking for LAPACK... - NOT found (Fortran not enabled)")
return()
endif(LAPACK_FIND_REQUIRED)
endif(NOT _LANGUAGES_ MATCHES Fortran)