Skip to content
Snippets Groups Projects
Commit 66c677e3 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Move HAVE_SUITESPARSE and dune_register_package_flags to AddSuiteSparseFlags

parent b4ad040b
No related branches found
No related tags found
1 merge request!823Rewrite FindSuiteSparse to provide imported targets
Pipeline #27379 passed
......@@ -10,6 +10,18 @@
# A list of targets to use SuiteSparse with.
#
# set HAVE_SUITESPARSE for config.h
set(HAVE_SUITESPARSE ${SuiteSparse_FOUND})
set(HAVE_UMFPACK ${SuiteSparse_UMFPACK_FOUND})
# register all SuiteSparse related flags
if(SuiteSparse_FOUND)
dune_register_package_flags(
COMPILE_DEFINITIONS "ENABLE_SUITESPARSE=1"
LIBRARIES SuiteSparse::SuiteSparse)
endif()
# Provide function to set target properties for linking to SuiteSparse
function(add_dune_suitesparse_flags _targets)
if(SuiteSparse_FOUND)
foreach(_target ${_targets})
......
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