diff options
-rw-r--r-- | Modules/FindBLAS.cmake | 3 | ||||
-rw-r--r-- | 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) |