From 7183a632f0469b4da7db6ffad354c9cdf03a0369 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 21 Jul 2008 15:34:11 -0400 Subject: ENH: get out of module if no fortran --- Modules/FindBLAS.cmake | 3 ++- Modules/FindLAPACK.cmake | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake index c78d627..97af3ef 100644 --- a/Modules/FindBLAS.cmake +++ b/Modules/FindBLAS.cmake @@ -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) diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake index 6fa0e0f..e78a0b9 100644 --- a/Modules/FindLAPACK.cmake +++ b/Modules/FindLAPACK.cmake @@ -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) -- cgit v0.12