mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-01 01:32:00 +08:00
Add a EIGEN_MPL2_ONLY build option to generate compiler errors when including non-MPL2 modules
This commit is contained in:
parent
6072cac80e
commit
0de22418e1
3
Eigen/src/Core/util/NonMPL2.h
Normal file
3
Eigen/src/Core/util/NonMPL2.h
Normal file
@ -0,0 +1,3 @@
|
||||
#ifdef EIGEN_MPL2_ONLY
|
||||
#error Including non-MPL2 code in EIGEN_MPL2_ONLY mode
|
||||
#endif
|
@ -30,6 +30,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#include "../Core/util/NonMPL2.h"
|
||||
|
||||
#ifndef EIGEN_SPARSE_AMD_H
|
||||
#define EIGEN_SPARSE_AMD_H
|
||||
|
||||
|
@ -45,6 +45,8 @@ LDL License:
|
||||
and a notice that the code was modified is included.
|
||||
*/
|
||||
|
||||
#include "../Core/util/NonMPL2.h"
|
||||
|
||||
#ifndef EIGEN_SIMPLICIAL_CHOLESKY_H
|
||||
#define EIGEN_SIMPLICIAL_CHOLESKY_H
|
||||
|
||||
|
@ -30,6 +30,8 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
#ifndef EIGEN_CONSTRAINEDCG_H
|
||||
#define EIGEN_CONSTRAINEDCG_H
|
||||
|
||||
|
@ -57,6 +57,8 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
#ifndef EIGEN_ITERATION_CONTROLLER_H
|
||||
#define EIGEN_ITERATION_CONTROLLER_H
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
#define chkder_log10e 0.43429448190325182765
|
||||
#define chkder_factor 100.
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "../../../../Eigen/src/Core/util/NonMPL2.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
Loading…
x
Reference in New Issue
Block a user