ENH: get out of module if no fortran
This commit is contained in:
parent
e1a2c08628
commit
7183a632f0
|
@ -21,7 +21,8 @@ if(NOT _LANGUAGES_ MATCHES Fortran)
|
||||||
if(BLAS_FIND_REQUIRED)
|
if(BLAS_FIND_REQUIRED)
|
||||||
message(FATAL_ERROR "FindBLAS is Fortran-only so Fortran must be enabled.")
|
message(FATAL_ERROR "FindBLAS is Fortran-only so Fortran must be enabled.")
|
||||||
else(BLAS_FIND_REQUIRED)
|
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(BLAS_FIND_REQUIRED)
|
||||||
endif(NOT _LANGUAGES_ MATCHES Fortran)
|
endif(NOT _LANGUAGES_ MATCHES Fortran)
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,8 @@ if(NOT _LANGUAGES_ MATCHES Fortran)
|
||||||
message(FATAL_ERROR
|
message(FATAL_ERROR
|
||||||
"FindLAPACK is Fortran-only so Fortran must be enabled.")
|
"FindLAPACK is Fortran-only so Fortran must be enabled.")
|
||||||
else(LAPACK_FIND_REQUIRED)
|
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(LAPACK_FIND_REQUIRED)
|
||||||
endif(NOT _LANGUAGES_ MATCHES Fortran)
|
endif(NOT _LANGUAGES_ MATCHES Fortran)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue