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

Allow building shared libraries when requested #20

Closed

Conversation

carlocab
Copy link
Contributor

CMake builds static libraries by default unless requested otherwise with
BUILD_SHARED_LIBS. However, this is made impossible when you pass
STATIC to add_library.

Passing STATIC isn't really necessary, and can be a hinderance for
downstream users. See, for example, facebook/mvfst#302.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 14, 2024
@carlocab
Copy link
Contributor Author

Not sure why CI is failing, but this was true on main too: https://github.com/facebookexperimental/edencommon/actions/runs/9511249581/job/26217028863#step:41:798

@facebook-github-bot
Copy link
Contributor

@genevievehelsel has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@genevievehelsel
Copy link
Contributor

Not sure why CI is failing, but this was true on main too: https://github.com/facebookexperimental/edencommon/actions/runs/9511249581/job/26217028863#step:41:798

I manually reran the action, maybe try to pull and rebase and submit again if the retried signal is still red?

CMake builds static libraries by default unless requested otherwise with
`BUILD_SHARED_LIBS`. However, this is made impossible when you pass
`STATIC` to `add_library`.

Passing `STATIC` isn't really necessary, and can be a hinderance for
downstream users. See, for example, facebook/mvfst#302.
@carlocab
Copy link
Contributor Author

carlocab commented Jul 3, 2024

Tried rebasing, but main is still broken, so it doesn't help: https://github.com/facebookexperimental/edencommon/actions/runs/9781631438

@facebook-github-bot
Copy link
Contributor

@genevievehelsel merged this pull request in e052d5f.

@carlocab carlocab deleted the enable-build-shared branch August 8, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants