Skip to content

Add support for generating SHARED library with -DBUILD_SHARED_LIBS=ON flag #76

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PARTHSQL
Copy link

This change adds support for generating SHARED library which can be dynamically linked against any application.
When supplied with -DBUILD_SHARED_LIBS=ON the cmake command will generate a dynamically linkable library.
This change also updates README with this.

@tqchen
Copy link
Contributor

tqchen commented Jun 13, 2025

Thanks for the contribution, may i ask the usecase of this? Ideally we would like to keep this project minimal so we only provide static link option

@PARTHSQL
Copy link
Author

Thanks @tqchen looking at the PR. My application will have to support and update with any changes in this library if I statically link it. Making it dynamic library gives option to have modularity in my application, independent updates of this library, and also would be more memory efficient as this shared library will be used by multiple applications.

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.

2 participants