Skip to content

Better support for presets containing [ and ]#80

Merged
MarkSchofield merged 4 commits intodevelopfrom
mschofie/literal-path
Nov 9, 2025
Merged

Better support for presets containing [ and ]#80
MarkSchofield merged 4 commits intodevelopfrom
mschofie/literal-path

Conversation

@MarkSchofield
Copy link
Owner

[ and ] are valid CMake preset name and file-system characters, but in many CmdLet parameters they're interpreted as wildcard characters. As a result, when using [ and ] in a preset name - like windows-x64[asan], Get-Item -Path 'windows-x64[asan]'will fail, even if a file called windows-x64[asan] is present. Instead of using -Path, the code should use -LiteralPath when not expecting wild-card semantics. This change does that, and adds a test to validate that Invoke-CMakeOutput succeeds when a preset with [ and ] is used.

@MarkSchofield MarkSchofield merged commit 8e39728 into develop Nov 9, 2025
1 check passed
@MarkSchofield MarkSchofield deleted the mschofie/literal-path branch November 9, 2025 06: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.

1 participant