Add function to python package to check state of cmake variables
Provide function dune.packagemetadata.cmakeSetting(flag)
to return the value of a cmake flag during the configuration of a package (assuming it was added to the metadata). With this we could figure out what HAVE_MPI
was during build to see if we should require mpi4py
or, for example, if albertaGrid
or petsc
can be used. That was in the past done rather crudely with looking at CMakeCahce.txt
and config.h
in dune-py
but the new metadata mechanism would make this a lot more elegant.