Verified Commit 0ac56e9a authored by Justin Carpentier's avatar Justin Carpentier
Browse files

test/tensor: only test when C++11 is ON

parent 7d2053ad
......@@ -9,12 +9,15 @@
#include <boost/test/unit_test.hpp>
#include <boost/utility/binary.hpp>
#include <unsupported/Eigen/CXX11/Tensor>
#ifdef PINOCCHIO_WITH_CXX11_SUPPORT
#include <unsupported/Eigen/CXX11/Tensor>
#endif
#include <iostream>
BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
#ifdef PINOCCHIO_WITH_CXX11_SUPPORT
BOOST_AUTO_TEST_CASE(test_emulate_tensors)
{
typedef Eigen::Tensor<double,3> Tensor;
......@@ -42,5 +45,6 @@ BOOST_AUTO_TEST_CASE(test_emulate_tensors)
}
}
}
#endif
BOOST_AUTO_TEST_SUITE_END()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment