laurentkneip / opengv

OpenGV is a collection of computer vision methods for solving geometric vision problems. It is hosted and maintained by the Mobile Perception Lab of ShanghaiTech.
Other
1.01k stars 354 forks source link

[cmake] allow to override the cxx standard #120

Open fabiencastan opened 1 year ago

fabiencastan commented 1 year ago

When using multiple libraries using eigen, they all need to agree on the way we use memory alignment in eigen. See https://eigen.tuxfamily.org/dox/group__TopicStlContainers.html As we have moved to C++17, we need all libraries using eigen to be compatible with that.

The solution is simple: define a cmake cached variable, so it can be overriden.

This PR also add some missing includes, needed to build with g++ 10.