From 02eaaacbc5b4f51718e9a82b7ede57659bdb514a Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Fri, 20 Jul 2018 16:08:40 -0700 Subject: Move cxx11_tensor_uint128 test under an EIGEN_TEST_CXX11 guarded block Builds configured without the -DEIGEN_TEST_CXX11=ON flag would fail right away without this, as this test seems to rely on those language features. The skip under compilation with MSVC was kept. --- unsupported/test/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'unsupported/test/CMakeLists.txt') diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt index 0fc864eca..55b86a32f 100644 --- a/unsupported/test/CMakeLists.txt +++ b/unsupported/test/CMakeLists.txt @@ -141,10 +141,6 @@ ei_add_test(cxx11_tensor_sugar) ei_add_test(cxx11_tensor_roundings) ei_add_test(cxx11_tensor_layout_swap) ei_add_test(cxx11_tensor_io) -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) -endif() endif() if(EIGEN_TEST_CXX11) @@ -226,6 +222,10 @@ if(EIGEN_TEST_CXX11) ei_add_test(cxx11_tensor_scan) ei_add_test(cxx11_tensor_trace) ei_add_test(cxx11_tensor_move) +if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8" AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + # This test requires __uint128_t which is only available on 64bit systems + ei_add_test(cxx11_tensor_uint128) +endif() endif() -- cgit v1.2.3