-
Notifications
You must be signed in to change notification settings - Fork 802
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
Allow override of BUILD_SHARED_LIBS #1464
Conversation
Ibarria
commented
Feb 12, 2023
The cmake option BUILD_SHARED_LIBS is a cmake built-in option to control if libraries are by default SHARED or STATIC. For large projects, it is desired to be able to design gtsam as a shared or static library regardless of the value of BUILD_SHARED_LIBS. This change is unobtrusive, two new cmake options are created, to force gtsam to be a shared or static library. If neither option is set (this is the default), the behavior of gtsam remains unchanged which is to use BUILD_SHARED_LIBS decision.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
I will merge after CI passes. |
Again, windows fails. It is weird, this issue was fixed by defining |
The cmake call to set_properties is fully overriding a property, in this case the COMPILE_DEFINITIONS and we were losing an eigen definition needed. The correct way to do this is to use the cmake function target_compile_definitions
I will merge this as many Linux CI's actually succeed, so I think it's more OOM stuff. |
Dang, close by accident. Will run CI again, but only required... |