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

Build static libraries #14

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Build static libraries #14

merged 1 commit into from
Oct 23, 2023

Conversation

ChrisThrasher
Copy link
Member

Closes #11

Static libraries are a better default since it's less common to need shared libraries. Users who explicitly want shared libs may still enable it if they wish.

This lets us remove if (WIN32 AND BUILD_SHARED_LIBS) if we'd like to simplify the build script. That's a rather sophisticated bit of CMake code and I worry that it makes the build scripts a lot harder to understand. We're better off hardcoding CMAKE_RUNTIME_OUTPUT_DIRECTORY if we want to make sure all executables and DLLs end up in the same directory.

@ChrisThrasher ChrisThrasher merged commit 1faab78 into master Oct 23, 2023
20 checks passed
@ChrisThrasher ChrisThrasher deleted the shared_libs branch October 23, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change default value of BUILD_SHARED_LIBS to OFF
2 participants