Completely disable Eigen/Array in Eigen3; completely enable in EIGEN2_SUPPORT.

This commit is contained in:
Benoit Jacob 2011-01-20 08:12:24 -05:00
parent 96f08213f7
commit 66a2ffa9bd
2 changed files with 2 additions and 9 deletions

View File

@ -1,14 +1,8 @@
#ifndef EIGEN_ARRAY_MODULE_H
#define EIGEN_ARRAY_MODULE_H
#ifndef EIGEN_NO_EIGEN2_DEPRECATED_WARNINGS
#ifdef _MSC_VER
#pragma message("The inclusion of Eigen/Array is deprecated. \
The array module is available as soon as Eigen/Core is included.")
#elif __GNUC__
#warning "The inclusion of Eigen/Array is deprecated. \
The array module is available as soon as Eigen/Core is included."
#endif
#ifndef EIGEN2_SUPPORT
#error The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core.
#endif
#include "Core"

View File

@ -2,7 +2,6 @@ add_custom_target(buildtests_eigen2)
add_custom_target(check_eigen2 COMMAND "ctest")
add_dependencies(check_eigen2 buildtests_eigen2)
add_definitions("-DEIGEN_NO_EIGEN2_DEPRECATED_WARNINGS")
add_definitions("-DEIGEN2_SUPPORT")
# Macro to add a test