Skip to content

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
@kilograham kilograham merged commit c54475d into raspberrypi:develop Jan 20, 2025
4 checks passed
will-v-pi added a commit to will-v-pi/pico-sdk that referenced this pull request Mar 20, 2025
* Remove deprecated uses of FetchContent_Populate

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

* Fix GIT_SUBMODULES_RECURSE for older CMake versions
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