Skip to content

GH-45303: [C++] Refactor ZSTD from ExternalProject to FetchContent - #46393

Open
jonkeane wants to merge 2 commits into
apache:mainfrom
jonkeane:ZSTD_FetchContent
Open

GH-45303: [C++] Refactor ZSTD from ExternalProject to FetchContent#46393
jonkeane wants to merge 2 commits into
apache:mainfrom
jonkeane:ZSTD_FetchContent

Conversation

@jonkeane

@jonkeanejonkeane commented May 11, 2025

Copy link
Copy Markdown
Member

Rationale for this change

Refactor ZSTD from ExternalProject to FetchContent

Partially resolves#45303

What changes are included in this PR?

Cmake, refactored

Are these changes tested?

Yes

Are there any user-facing changes?

No

@pitrou

Copy link
Copy Markdown
Member

Is there anything left to do here? cc @kou

Comment on lines +2745 to +2747
# Check which target name is actually created by zstd's CMake
# zstd on macOS often creates 'zstd_static' despite what the docs say
if(TARGET zstd_static)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actionsgithub-actionsBot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Jun 13, 2025
@@ -2690,49 +2690,87 @@ if(ARROW_WITH_LZ4)
endif()

macro(build_zstd)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We must use function() not macro() here to create a new scope.

@jonkeane

Copy link
Copy Markdown
MemberAuthor

Sorry, I haven't had the bandwidth to come back to this. Would someone want to take it over for me? If no that's ok — I'll close the PR.

@kou

kou commented Aug 22, 2025

Copy link
Copy Markdown
Member

No problem. I'll take it over later.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Unfortunately, this pull request has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this PR will be closed in 14 days. Feel free to re-open this if it has been closed in error. If you do not have repository permissions to reopen the PR, please tag a maintainer.

@github-actionsgithub-actionsBot added the Status: stale-warning Issues and PRs flagged as stale which are due to be closed if no indication otherwise label Aug 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changesAwaiting changesComponent: C++Status: stale-warningIssues and PRs flagged as stale which are due to be closed if no indication otherwise

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C++] Refactor bundled dependencies from ExternalProject to FetchContent

3 participants

@jonkeane@pitrou@kou