[go: up one dir, main page]

Compiling Eigen/Sparse with EIGEN_MPL2_ONLY includes SparseCholesky:#error

Submitted by totto

Assigned to Nobody

Link to original bugzilla bug (#1392)
Version: 3.3 (current stable)

Description

Created attachment 774
Eigen-3.3.2-SparseCholesky-MPL2_ONLY.patch

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.

Patch 774, "Eigen-3.3.2-SparseCholesky-MPL2_ONLY.patch":
Eigen-3.3.2-SparseCholesky-MPL2_ONLY.patch

Edited by Eigen Bugzilla