Add a EIGEN_MPL2_ONLY build option to generate compiler errors when including non-MPL2 modules

This commit is contained in:
Benoit Jacob
2012-07-13 14:42:47 -04:00
parent 0733e622a3
commit 269be00925
14 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#ifdef EIGEN_MPL2_ONLY
#error Including non-MPL2 code in EIGEN_MPL2_ONLY mode
#endif