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

[!823] Rewrite FindSuiteSparse to provide imported targets

Merge branch 'feature/find_suitesparse' into 'master'

ref:core/dune-common\>

### Summary

This MR adds imported-targets to the FindSuiteSparse.cmake module, following
modern cmake guidelines.

### Details

Instead of exporting include directories and libraries as variables, the find
modules exports an imported target that contains all the necessary information
to include and link SuiteSparse libraries. The module allows to search for
various SuiteSparse components, like UMFPACK or SPQR, and introduces an
imported target for each of them in the form: SuiteSparse::<component>.
Additionally the combined imported target SuiteSparse::SuiteSparse is defined
to link against all found components.

Difference to old FindSuiteSparse module: It searches for all possible
components and creates corresponding component targets. The collective target
SuiteSparse::SuiteSparse then only contains the requested components.

See merge request [!823]

  [!823]: gitlab.dune-project.org/core/dune-common/merge_requests/823
parents 2917908b ccd2ad83
Branches
Tags
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment