Skip to content

Clean extra output files #2504

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Clean extra output files #2504

wants to merge 1 commit into from

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant