Created attachment 774 [details]
When including Eigen/Sparse and compiling with EIGEN_MPL2_ONLY an #error directive is triggered:
Eigen/SparseCholesky:34:2: error: The SparseCholesky module has nothing to offer in MPL2 only mode
#error The SparseCholesky module has nothing to offer in MPL2 only mode
This can be fixed by checking for the MPL2 define in Eigen/Sparse and skipping Eigen/SparseCholesky if it is set, see attached patch.
Thank you for the fix. Applied: