Skip to content

Fix over-matching on implicitly scoped targets#69

Merged
MarkSchofield merged 3 commits intodevelopfrom
mschofie/scoped-builds
Oct 5, 2025
Merged

Fix over-matching on implicitly scoped targets#69
MarkSchofield merged 3 commits intodevelopfrom
mschofie/scoped-builds

Conversation

@MarkSchofield
Copy link
Owner

Fixes #36.

When finding scoped targets to build, PSCMake looks for targets in folders that 'start with' the current folder path. But it's possible for a sibling folder (that has a name that is a prefix of the current folder) would also match. This PR fixes that by canonicalizing the folder paths and ensuring a trailing slash is included. Tests have been added to verify the behavior, expanding the ReferenceBuild to cover the use case.

@MarkSchofield MarkSchofield merged commit 2fa7a71 into develop Oct 5, 2025
1 check passed
@MarkSchofield MarkSchofield deleted the mschofie/scoped-builds branch October 5, 2025 22:58
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.

Finding targets by scope matches too many targets

1 participant