From d2cba520152fadcddb481142ba2250b5bbf0ad81 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 5 Feb 2016 18:14:23 -0800 Subject: [PATCH] Only enable the cxx11_tensor_uint128 test on 64 bit machines since 32 bit systems don't support the __uin128_t type --- unsupported/test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt index 42e0189a4..c202cf0e4 100644 --- a/unsupported/test/CMakeLists.txt +++ b/unsupported/test/CMakeLists.txt @@ -117,7 +117,6 @@ if(EIGEN_TEST_CXX11) ei_add_test(cxx11_tensor_of_const_values "-std=c++0x") ei_add_test(cxx11_tensor_of_complex "-std=c++0x") ei_add_test(cxx11_tensor_of_strings "-std=c++0x") - ei_add_test(cxx11_tensor_uint128 "-std=c++0x") ei_add_test(cxx11_tensor_intdiv "-std=c++0x") ei_add_test(cxx11_tensor_lvalue "-std=c++0x") ei_add_test(cxx11_tensor_map "-std=c++0x") @@ -149,6 +148,11 @@ if(EIGEN_TEST_CXX11) ei_add_test(cxx11_tensor_ifft "-std=c++0x") ei_add_test(cxx11_tensor_empty "-std=c++0x") + if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") + # This test requires __uint128_t which is only available on 64bit systems + ei_add_test(cxx11_tensor_uint128 "-std=c++0x") + endif() + endif() # These tests needs nvcc