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

Support static linking #86

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

alexkutsan
Copy link
Contributor

Keeping library shared only makes it impossible to install in a system wrapped in pybind11 pythons module.
Details : pybind/cmake_example#11

So, added additional target for static linking

@alexkutsan alexkutsan marked this pull request as draft November 6, 2023 08:36
Update CMakeLists.txt
@alexkutsan alexkutsan force-pushed the feat/support_static_linking branch from a1e9997 to 4192f70 Compare November 6, 2023 08:44
@alexkutsan alexkutsan marked this pull request as ready for review November 6, 2023 08:44
@pageldev pageldev merged commit 9f272c8 into pageldev:master Nov 24, 2023
pageldev added a commit that referenced this pull request Nov 25, 2023
…dling #86

* remove explicit static library target, build static library by default, use '-DBUILD_SHARED_LIBS=On' to get shared libs
* set compiler flags for MSVC correctly
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