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

Use FetchContent_MakeAvailable #1311

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Use FetchContent_MakeAvailable #1311

merged 1 commit into from
Aug 21, 2024

Conversation

LecrisUT
Copy link
Contributor

It is highly recommended to use FetchContent_MakeAvailable instead of manually interfacing with the FetchContent_Populate

@jbeder
Copy link
Owner

jbeder commented Aug 21, 2024

For reference:

The FetchContent_Populate() command is a self-contained call which can be used to perform content population as an isolated operation. It is rarely the right command to use, projects should almost always use FetchContent_Declare() and FetchContent_MakeAvailable() instead. The main use case for FetchContent_Populate() is in CMake script mode as part of implementing some other higher level custom feature.

@jbeder jbeder merged commit b38ac5b into jbeder:master Aug 21, 2024
33 checks passed
@LecrisUT LecrisUT deleted the patch-1 branch August 21, 2024 19:57
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.

2 participants