-
Notifications
You must be signed in to change notification settings - Fork 118
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
Avoid calling target_link_libraries
to Eigen3, since it is a header-only library
#175
Comments
so linking it via
This is a really old SO answers, that I guess predates when the
I am not sure I follow what you mean with this sentence. How is the current .so hard to relocate on different systems? To avoid the XY problem (https://en.wikipedia.org/wiki/XY_problem) probably it could be useful if you explain the error or problem you are experiencing with osqp-eigen ? |
@traversaro guess you are correct! this is then not the issue I'm seeing. Thanks for the help 🙏 |
No problem! Feel free to share more details on the issues you are seeing. Indeed, when Eigen is used as a private dependencies sometimes it is better not to use target_link_libraries (see robotology/idyntree#1065) but that is not the case with osqp-eigen. |
Today osqp-eigen calls
target_link_libraries
to Eigen3. Eigen3 is a header-only library, so this should not be needed and instead justinclude
the Eigen3 directories.https://stackoverflow.com/questions/28267104/using-eigen-lib-in-my-cmake-project
By calling
target_link_libraries
to Eigen3, it means the Eigen3 symbols are included in the generated osqp_eigen .so file....which it probably should not since it makes the generated .so files much hard to relocate on different systemsThe text was updated successfully, but these errors were encountered: