summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-07-21 19:11:03 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-07-21 19:11:03 (GMT)
commite1a2c08628d889265b0d209cd972e9d04d346781 (patch)
tree4baebe184cde38a327909a84a58923b6b9499e82 /Modules/FindBLAS.cmake
parent834dd533ed7d73d8e97aea64bb276b4b86e71eea (diff)
downloadCMake-e1a2c08628d889265b0d209cd972e9d04d346781.zip
CMake-e1a2c08628d889265b0d209cd972e9d04d346781.tar.gz
CMake-e1a2c08628d889265b0d209cd972e9d04d346781.tar.bz2
ENH: this should fail only if required is sent to find package
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake6
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)