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: set CMake policy to allow FetchContent_Populate #12880

Merged

Conversation

Jasinsky
Copy link
Contributor

Summary

FetchContent_Populate is depracated starting from CMake 3.30. Setting this policy to OLD allows clean (no warnings) CMake builds for configurations that rely on CMake fetch content feature.

Impact

If we want to keep up with CMake versioning - FetchContent_Populate is deprecated in 3.30 - and it's gonna be disabled in future version.

https://cmake.org/cmake/help/latest/module/FetchContent.html#command:fetchcontent_populate

Testing

Local builds (or rather configure steps) using CMake 3.30.2

Was there any specific reason for calling FetchContent_Populate instead of FetchContent_MakeAvailable?

FetchContent_Populate is depracated starting from CMake
3.30. Setting this policy to OLD allows clean CMake builds
for configurations that rely on CMake fetch content feature.

Signed-off-by: Daniel Jasinski <jasinskidaniel95szcz@gmail.com>
@xiaoxiang781216 xiaoxiang781216 merged commit d77ef09 into apache:master Aug 10, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants