Skip to content

Clean extra output files #2504

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

Merged
merged 1 commit into from
Jun 18, 2025
Merged

Clean extra output files #2504

merged 1 commit into from
Jun 18, 2025

Conversation

will-v-pi
Copy link
Contributor

Add bin/uf2/dis/hex output files as byproducts, so they get cleaned up when using make clean (or similar)

This is only best-effort, because BYPRODUCTS doesn't support generator expressions (https://gitlab.kitware.com/cmake/cmake/-/issues/12877), so everything must be evaluated at the time pico_add_extra_outputs is called. This shouldn't have any ill effects, other than not cleaning up the extra output files if OUTPUT_NAME is set after calling pico_add_extra_outputs.

Add bin/uf2/dis/hex output files as byproducts, so they get cleaned up

This is only best-effort, because BYPRODUCTS doesn't support generator expressions, so everything must be evaluated at the time pico_add_extra_outputs is called
@will-v-pi will-v-pi added this to the 2.1.2 milestone Jun 5, 2025
@will-v-pi will-v-pi requested a review from kilograham June 5, 2025 14:53
@kilograham kilograham merged commit c3c6267 into develop Jun 18, 2025
8 checks passed
@kilograham kilograham deleted the clean-uf2s branch June 18, 2025 22:07
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