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

Add support for building static library with CMake #34

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

ankane
Copy link
Contributor

@ankane ankane commented Mar 10, 2025

Hi, thanks for this library!

This PR adds support for building libb64c as a static library.

cmake -S . -B build -DBUILD_SHARED_LIBS=OFF
cmake --build build
# ... [100%] Linking C static library libb64c.a ...

It defaults to a shared library for backwards compatibility.

More info on BUILD_SHARED_LIBS: https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html

@jwerle jwerle merged commit 1d8b3b4 into jwerle:master Mar 14, 2025
@jwerle
Copy link
Owner

jwerle commented Mar 14, 2025

thanks!

@ankane
Copy link
Contributor Author

ankane commented Mar 14, 2025

Thanks @jwerle!

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