diff options
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r-- | Modules/FindBLAS.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake index 8aa425f..c78d627 100644 --- a/Modules/FindBLAS.cmake +++ b/Modules/FindBLAS.cmake @@ -18,7 +18,11 @@ get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES) if(NOT _LANGUAGES_ MATCHES Fortran) - message(FATAL_ERROR "FindBLAS is Fortran-only so Fortran must be enabled.") + 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)") + endif(BLAS_FIND_REQUIRED) endif(NOT _LANGUAGES_ MATCHES Fortran) include(CheckFortranFunctionExists) |