From cacd1672b70843bd694a864606c7bf2f84949ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <gruenich@dune-project.org> Date: Sun, 15 Nov 2015 09:09:45 +0100 Subject: [PATCH] [CMake] Don't require BLAS in FindSuiteSparse If BLAS is not found, the whole configure process is aborted. We actually want that BLAS is a requirement for SuiteSparse. It is better to check using FindPackageHandleStandardArgs. --- cmake/modules/FindSuiteSparse.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmake/modules/FindSuiteSparse.cmake b/cmake/modules/FindSuiteSparse.cmake index 804948154..8f68f72f4 100644 --- a/cmake/modules/FindSuiteSparse.cmake +++ b/cmake/modules/FindSuiteSparse.cmake @@ -34,11 +34,7 @@ # system paths. # -find_package(BLAS QUIET REQUIRED) -if(NOT BLAS_FOUND) - message(WARNING "SuiteSparse requires BLAS which was not found, skipping the test.") - return() -endif() +find_package(BLAS QUIET) # look for desired componenents set(SUITESPARSE_COMPONENTS ${SuiteSparse_FIND_COMPONENTS}) @@ -202,6 +198,7 @@ include(FindPackageHandleStandardArgs) find_package_handle_standard_args( "SuiteSparse" REQUIRED_VARS + BLAS_FOUND SUITESPARSE_INCLUDE_DIR SUITESPARSE_LIBRARY HANDLE_COMPONENTS -- GitLab