From a4f88cd6c30f5815a6bd552b5e6ebde6b7884dd0 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Fri, 24 Jul 2020 15:16:33 +0200 Subject: [PATCH] [numeric] eigen alignment is not supported for now So ensure that we are building with the right flags --- src/aliceVision/numeric/numeric.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/aliceVision/numeric/numeric.hpp b/src/aliceVision/numeric/numeric.hpp index 06ec248843..214805ad86 100644 --- a/src/aliceVision/numeric/numeric.hpp +++ b/src/aliceVision/numeric/numeric.hpp @@ -8,6 +8,21 @@ #pragma once +// AliceVision does not support Eigen with alignment, +// So ensure Eigen is used with the correct flags. +#ifndef EIGEN_MAX_ALIGN_BYTES +#error "EIGEN_MAX_ALIGN_BYTES is not defined" +#elif EIGEN_MAX_ALIGN_BYTES != 0 +#error "EIGEN_MAX_ALIGN_BYTES is defined but not 0" +#endif + +#ifndef EIGEN_MAX_STATIC_ALIGN_BYTES +#error "EIGEN_MAX_STATIC_ALIGN_BYTES is not defined" +#elif EIGEN_MAX_STATIC_ALIGN_BYTES != 0 +#error "EIGEN_MAX_STATIC_ALIGN_BYTES is defined but not 0" +#endif + + //-- // Eigen // http://eigen.tuxfamily.org/dox-devel/QuickRefPage.html