Skip to content
Snippets Groups Projects
Commit e6871ab9 authored by Christoph Grüninger's avatar Christoph Grüninger Committed by Steffen Müthing
Browse files

[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.

(cherry picked from commit cacd1672)
Signed-off-by: default avatarSteffen Müthing <muething@dune-project.org>
parent 9d958f20
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment