From 6df7ec7e38187a513c252bd74eb2183a155609e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <gruenich@dune-project.org>
Date: Sat, 8 Sep 2012 23:29:00 +0000
Subject: [PATCH] [FindSuperLU.cmake] Fix handling of failing BLAS check.

[[Imported from SVN: r1698]]
---
 cmake/modules/FindSuperLU.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/modules/FindSuperLU.cmake b/cmake/modules/FindSuperLU.cmake
index 52c1789a..7b03c9ee 100644
--- a/cmake/modules/FindSuperLU.cmake
+++ b/cmake/modules/FindSuperLU.cmake
@@ -11,10 +11,10 @@
 # SUPERLU_LIBRARIES       Name to the SuperLU library.
 #
 find_package(BLAS QUIET REQUIRED)
-if(NOT BLAS_FOUND AND REQUIRED)
-  message("BLAS not found but required for SuperLU")
+if(NOT BLAS_FOUND)
+  message("SuperLU requires BLAS which was not found, skipping the test.")
   return()
-endif(NOT BLAS_FOUND AND REQUIRED)
+endif(NOT BLAS_FOUND)
 
 # look for header files, only at positions given by the user
 find_path(SUPERLU_INCLUDE_DIR
-- 
GitLab