Fix MPReal detection and support.

The latest version of `mpreal` has a bug that breaks `min`/`max`.
It also breaks with the latest dev version of `mpfr`. Here we
add `FindMPREAL.cmake` which searches for the library and tests if
compilation works.

Removed our internal copy of `mpreal.h` under `unsupported/test`, as
it is out-of-sync with the latest, and similarly breaks with
the latest `mpfr`.  It would be best to use the installed version
of `mpreal` anyways, since that's what we actually want to test.

Fixes #2282.
This commit is contained in:
Antonio Sanchez
2021-07-16 13:45:15 -07:00
committed by Rasmus Munk Larsen
parent 1cdec38653
commit 31f796ebef
4 changed files with 108 additions and 3190 deletions

View File

@@ -1,3 +1,4 @@
#include <mpreal.h> // Must be included before main.h.
#include "main.h"
#include <Eigen/MPRealSupport>
#include <Eigen/LU>