Skip to content

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

Open
jonkeane wants to merge 2 commits intoapache:mainfrom
jonkeane:ZSTD_FetchContent
Open

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

Conversation

@jonkeane
Copy link
Member

@jonkeane jonkeane commented May 11, 2025

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
Member

pitrou commented Jun 12, 2025

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
Member

Choose a reason for hiding this comment

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

@github-actions github-actions bot 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
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
Member Author

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
Copy link
Member

kou commented Aug 22, 2025

No problem. I'll take it over later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants