SuiteSparse: OPTIONAL_COMPONENTS not optional due to targets being used unconditionally
Since the introduction of targets this seems to be an issue as the targets are used even when undefined:
-- Found SuiteSparse: /usr/lib64/libsuitesparseconfig.so (found version "4.0.2") found components: CHOLMOD LDL UMFPACK missing components: SPQR
CMake Error at $HOME/dune-common/cmake/modules/FindSuiteSparse.cmake:245 (target_link_libraries):
Cannot specify link libraries for target "SuiteSparse::SPQR" which is not
built by this project.
Call Stack (most recent call first):
cmake/modules/DuneIstlMacros.cmake:16 (find_package)
$HOME/dune-common/cmake/modules/DuneModuleDependencies.cmake:112 (include)
$HOME/dune-common/cmake/modules/DuneProject.cmake:123 (dune_process_dependency_macros)
CMakeLists.txt:27 (dune_project)
-- Configuring incomplete, errors occurred!
Will hopefully provide a fix for this myself.