summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-07-21 19:34:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-07-21 19:34:11 (GMT)
commit7183a632f0469b4da7db6ffad354c9cdf03a0369 (patch)
treec1c5ae3578bde37e3394f47ffee55dba1bee794c /Modules/FindBLAS.cmake
parente1a2c08628d889265b0d209cd972e9d04d346781 (diff)
downloadCMake-7183a632f0469b4da7db6ffad354c9cdf03a0369.zip
CMake-7183a632f0469b4da7db6ffad354c9cdf03a0369.tar.gz
CMake-7183a632f0469b4da7db6ffad354c9cdf03a0369.tar.bz2
ENH: get out of module if no fortran
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake3
1 files changed, 2 insertions, 1 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)