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

Change FetchContent_Populate to FetchContent_MakeAvailable #387

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

imorlxs
Copy link
Member

@imorlxs imorlxs commented Aug 23, 2024

According to #386, since FetchContent_Populate is deprecated we need to get rid of it. This PR makes this possible replacing it with the function FetchContent_MakeAvailable

According to https://cmake.org/cmake/help/latest/module/FetchContent.html#command:fetchcontent_populate, FetchContent_MakeAvailable ensures the named
dependencies have been populated, either by an earlier call, or by populating them itself.

This makes possible to get rid of the conditional.
@imorlxs imorlxs linked an issue Aug 23, 2024 that may be closed by this pull request
@imorlxs imorlxs requested a review from TobiasDuswald August 23, 2024 08:18
Copy link

sonarcloud bot commented Aug 23, 2024

@TobiasDuswald TobiasDuswald merged commit b194976 into master Aug 26, 2024
19 of 22 checks passed
@TobiasDuswald
Copy link
Contributor

Thank you very much @imorlxs !

@TobiasDuswald TobiasDuswald deleted the 386-fetchcontent_populate-is-deprecated branch August 26, 2024 09:02
imorlxs added a commit that referenced this pull request Oct 8, 2024
See deprecation warning documented in #386.
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.

FetchContent_Populate is deprecated.
2 participants