mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-24 02:29:33 +08:00
Enable evaluators by default
This commit is contained in:
parent
124d12a915
commit
c1d0f15bde
11
Eigen/Core
11
Eigen/Core
@ -12,10 +12,13 @@
|
||||
#define EIGEN_CORE_H
|
||||
|
||||
// EIGEN_TEST_EVALUATORS => EIGEN_ENABLE_EVALUATORS
|
||||
#ifdef EIGEN_TEST_EVALUATORS
|
||||
#ifndef EIGEN_ENABLE_EVALUATORS
|
||||
#define EIGEN_ENABLE_EVALUATORS
|
||||
#endif
|
||||
#ifndef EIGEN_TEST_NO_EVALUATORS
|
||||
#ifndef EIGEN_TEST_EVALUATORS
|
||||
#define EIGEN_TEST_EVALUATORS
|
||||
#endif
|
||||
#ifndef EIGEN_ENABLE_EVALUATORS
|
||||
#define EIGEN_ENABLE_EVALUATORS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// first thing Eigen does: stop the compiler from committing suicide
|
||||
|
@ -139,10 +139,10 @@ endif(TEST_LIB)
|
||||
set_property(GLOBAL PROPERTY EIGEN_CURRENT_SUBPROJECT "Official")
|
||||
add_custom_target(BuildOfficial)
|
||||
|
||||
option(EIGEN_TEST_EVALUATORS "Enable work in progress evaluators" OFF)
|
||||
if(EIGEN_TEST_EVALUATORS)
|
||||
add_definitions("-DEIGEN_TEST_EVALUATORS=1")
|
||||
endif(EIGEN_TEST_EVALUATORS)
|
||||
option(EIGEN_TEST_NO_EVALUATORS "Disable evaluators in unit tests" OFF)
|
||||
if(EIGEN_TEST_NO_EVALUATORS)
|
||||
add_definitions("-DEIGEN_TEST_NO_EVALUATORS=1")
|
||||
endif(EIGEN_TEST_NO_EVALUATORS)
|
||||
|
||||
ei_add_test(meta)
|
||||
ei_add_test(sizeof)
|
||||
|
@ -7,6 +7,10 @@
|
||||
#undef EIGEN_TEST_EVALUATORS
|
||||
#endif
|
||||
|
||||
#ifdef EIGEN_TEST_NO_EVALUATORS
|
||||
#undef EIGEN_TEST_NO_EVALUATORS
|
||||
#endif
|
||||
|
||||
#include "main.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
Loading…
x
Reference in New Issue
Block a user