mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-09 18:29:03 +08:00
Completely disable Eigen/Array in Eigen3; completely enable in EIGEN2_SUPPORT.
This commit is contained in:
parent
96f08213f7
commit
66a2ffa9bd
10
Eigen/Array
10
Eigen/Array
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user