diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-07-21 19:34:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-07-21 19:34:11 (GMT) |
commit | 7183a632f0469b4da7db6ffad354c9cdf03a0369 (patch) | |
tree | c1c5ae3578bde37e3394f47ffee55dba1bee794c /Modules/FindLAPACK.cmake | |
parent | e1a2c08628d889265b0d209cd972e9d04d346781 (diff) | |
download | CMake-7183a632f0469b4da7db6ffad354c9cdf03a0369.zip CMake-7183a632f0469b4da7db6ffad354c9cdf03a0369.tar.gz CMake-7183a632f0469b4da7db6ffad354c9cdf03a0369.tar.bz2 |
ENH: get out of module if no fortran
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r-- | Modules/FindLAPACK.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
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) |