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.02k stars 353 forks source link

Add option to set target architecture #85

Open paulinus opened 5 years ago

paulinus commented 5 years ago

This PR adds a cmake option to choose the target architecture for the build. This lets the user chose the architecture of the build independently of the current architecture.

It also removes the logic that tries to select the best architecture based on the CMAKE_SYSTEM_PROCESSOR. Letting the user do this selection is simpler and more flexible.