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

Adds more harmony into this world #3716

Closed
wants to merge 1 commit into from
Closed

Adds more harmony into this world #3716

wants to merge 1 commit into from

Conversation

dsvi
Copy link
Contributor

@dsvi dsvi commented Aug 4, 2023

... by making it possible to use the lib through FetchContent or ExternalProject_Add

For example:

#set(ZSTD_LEGACY_SUPPORT OFF)
#set(ZSTD_MULTITHREAD_SUPPORT OFF)
FetchContent_Declare(
    zstd
    URL https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.zst
    SOURCE_SUBDIR build/cmake
)
FetchContent_MakeAvailable(zstd)
#add_library(zstd ALIAS libzstd_static)

@facebook-github-bot
Copy link

Hi @dsvi!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@terrelln terrelln self-requested a review August 21, 2023 18:17
terrelln added a commit to terrelln/zstd that referenced this pull request Mar 14, 2024
* Make a variable `PublicHeaders` for Zstd's public headers
* Add `PublicHeaders` to `Headers`, which was missing
* Only export `${LIBRARY_DIR}` publicly, not `common/`
* Switch the `target_include_directories()` to `INTERFACE` because zstd uses relative includes internally, so doesn't need any include directories to build
* Switch installation to use the `PublicHeaders` variable, and test that the right headers are installed
@terrelln
Copy link
Contributor

@dsvi I've pulled your commit into PR #3968. Please let me know if that works for you.

@terrelln terrelln closed this Mar 14, 2024
terrelln added a commit that referenced this pull request Mar 18, 2024
* Make a variable `PublicHeaders` for Zstd's public headers
* Add `PublicHeaders` to `Headers`, which was missing
* Only export `${LIBRARY_DIR}` publicly, not `common/`
* Switch the `target_include_directories()` to `INTERFACE` because zstd uses relative includes internally, so doesn't need any include directories to build
* Switch installation to use the `PublicHeaders` variable, and test that the right headers are installed
hswong3i pushed a commit to alvistack/facebook-zstd that referenced this pull request Mar 27, 2024
* Make a variable `PublicHeaders` for Zstd's public headers
* Add `PublicHeaders` to `Headers`, which was missing
* Only export `${LIBRARY_DIR}` publicly, not `common/`
* Switch the `target_include_directories()` to `INTERFACE` because zstd uses relative includes internally, so doesn't need any include directories to build
* Switch installation to use the `PublicHeaders` variable, and test that the right headers are installed
hswong3i pushed a commit to alvistack/facebook-zstd that referenced this pull request Jan 5, 2025
* Make a variable `PublicHeaders` for Zstd's public headers
* Add `PublicHeaders` to `Headers`, which was missing
* Only export `${LIBRARY_DIR}` publicly, not `common/`
* Switch the `target_include_directories()` to `INTERFACE` because zstd uses relative includes internally, so doesn't need any include directories to build
* Switch installation to use the `PublicHeaders` variable, and test that the right headers are installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants