mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Enable mpreal unit test for C++11 compiler only
This commit is contained in:
parent
946f8850e8
commit
d4cf436cb1
@ -47,11 +47,11 @@ ei_add_test(FFT)
|
||||
|
||||
find_package(MPFR 2.3.0)
|
||||
find_package(GMP)
|
||||
if(MPFR_FOUND)
|
||||
if(MPFR_FOUND AND EIGEN_COMPILER_SUPPORT_CXX11)
|
||||
include_directories(${MPFR_INCLUDES} ./mpreal)
|
||||
ei_add_property(EIGEN_TESTED_BACKENDS "MPFR C++, ")
|
||||
set(EIGEN_MPFR_TEST_LIBRARIES ${MPFR_LIBRARIES} ${GMP_LIBRARIES})
|
||||
ei_add_test(mpreal_support "" "${EIGEN_MPFR_TEST_LIBRARIES}" )
|
||||
ei_add_test(mpreal_support "-std=c++11" "${EIGEN_MPFR_TEST_LIBRARIES}" )
|
||||
else()
|
||||
ei_add_property(EIGEN_MISSING_BACKENDS "MPFR C++, ")
|
||||
endif()
|
||||
|
@ -107,7 +107,7 @@
|
||||
#define MPREAL_HAVE_EXPLICIT_CONVERTERS
|
||||
#endif
|
||||
|
||||
//#define MPFR_USE_INTMAX_T // Enable 64-bit integer types - should be defined before mpfr.h
|
||||
#define MPFR_USE_INTMAX_T // Enable 64-bit integer types - should be defined before mpfr.h
|
||||
|
||||
#if defined(MPREAL_HAVE_MSVC_DEBUGVIEW) && defined(_MSC_VER) && defined(_DEBUG)
|
||||
#define MPREAL_MSVC_DEBUGVIEW_CODE DebugView = toString();
|
||||
|
Loading…
Reference in New Issue
Block a user