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

Remove deprecated uses of FetchContent_Populate #2169

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

will-v-pi
Copy link
Contributor

This removes the deprecated uses of FetchContent_Populate (see #2124)

The SDK cannot just use MakeAvailable as the files shouldn't be added to the build, so instead this uses the full signature for FetchContent_Populate which has not been deprecated. The FetchContent_Declare call is kept in pico_sdk_import.cmake else it will re-clone the SDK for every new build directory when PICO_SDK_FETCH_FROM_GIT_PATH is set, rather than re-using the cloned SDK in PICO_SDK_FETCH_FROM_GIT_PATH.

Fixes #2124

Cannot use MakeAvailable as the files shouldn't be added to the build, so instead uses the full signature for FetchContent_Populate

Fixes raspberrypi#2124
@will-v-pi will-v-pi added this to the 2.1.1 milestone Jan 7, 2025
@will-v-pi will-v-pi requested a review from kilograham January 7, 2025 15:56
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