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

Statically linking library #30

Closed
calebmer opened this issue Mar 20, 2016 · 2 comments
Closed

Statically linking library #30

calebmer opened this issue Mar 20, 2016 · 2 comments

Comments

@calebmer
Copy link

I'm trying to write bindings for the Rust programming language. Is there a way to statically link this project?

@swolchok
Copy link
Contributor

You can probably do what you want by fiddling with CMakeLists.txt. See https://cmake.org/cmake/help/v3.0/command/add_library.html for how to make it create a static library.

@rivanov2
Copy link

@calebmer I just had to do this, in case you've not figured it out, it's a simple change, as mentioned, to CmakeLists.txt.

SHARED -> STATIC should do the trick.

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

No branches or pull requests

3 participants