Skip to content

Commit

Permalink
[numeric] eigen alignment is not supported for now
Browse files Browse the repository at this point in the history
So ensure that we are building with the right flags
  • Loading branch information
fabiencastan committed Jul 24, 2020
1 parent f404543 commit a4f88cd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/aliceVision/numeric/numeric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4f88cd

Please sign in to comment.