Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure users do not mix up Eigen versions #28

Merged
merged 1 commit into from
Jun 2, 2019
Merged

Ensure users do not mix up Eigen versions #28

merged 1 commit into from
Jun 2, 2019

Conversation

jlblancoc
Copy link
Member

Since GTSAM uses, by default, an embedded copy of Eigen, there exists the possibility of user programs (also depending on Eigen) to include a different version of it (for example, from /usr/include).

To ensure this does not happen, this PR:

  • Detects Eigen version parsing the corresponding .h file (if it fails to parse it, nothing of the following will take effect)
  • Prints the detected Eigen version in the CMake final summary.
  • Defines the detected Eigen version in gtsam/config.h
  • Uses an static_assert() in base/Vector.h to detect for potential version mismatches.

@dellaert dellaert requested a review from chrisbeall May 29, 2019 15:11
@dellaert
Copy link
Member

Looks good to me, on cmake PR's I will typically defer to @chrisbeall to do final check and merge (or, if Chris does a cmake PR, to you :-))

@chrisbeall
Copy link
Member

I'll test, but might not have time until Thursday evening or Friday.

@jlblancoc
Copy link
Member Author

Rebased on top of develop so Travis con run on this PR too.

Copy link
Member

@chrisbeall chrisbeall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Tested on Ubuntu against Eigen 3.3.4, and the assert works! I'll merge.

@chrisbeall chrisbeall merged commit 823c8bd into borglab:develop Jun 2, 2019
ProfFan added a commit that referenced this pull request Feb 16, 2021
b28b3570d Merge pull request #30 from borglab/feature/remove_install
cc2b07193 Cleanup
610ca176b Allow GTWRAP to be installed in a prefix
193b922c6 Merge pull request #29 from borglab/feature/remove_install
6d2b6ace6 fix path to package
e5f220759 clean up some leftover code
b0b158a0a install python package as a directory
3f4a7c775 Allow usage without install into global env
5040ba415 Merge pull request #28 from borglab/readme-update
14a7452fe updated README Getting Started section

git-subtree-dir: wrap
git-subtree-split: b28b3570d221b89f3568f44ed439d3a444903570
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants