Skip to content

Fix regex to get MSVC version#75

Merged
MarkSchofield merged 1 commit intoMarkSchofield:mainfrom
scott-degraw:fix-msvc-version-regex
Sep 5, 2023
Merged

Fix regex to get MSVC version#75
MarkSchofield merged 1 commit intoMarkSchofield:mainfrom
scott-degraw:fix-msvc-version-regex

Conversation

@scott-degraw
Copy link
Copy Markdown
Contributor

The MSVC version number is not being properly parsed through the cl.exe -Bv command on my machine. The issue seems to be with the greedy regex pattern .* which matches the rest of the line eating up the version number. Changing this pattern to [^0-9]* seems to work fine.

@MarkSchofield
Copy link
Copy Markdown
Owner

Thanks for the fix!

@MarkSchofield MarkSchofield merged commit c26350c into MarkSchofield:main Sep 5, 2023
InCom-0 pushed a commit to InCom-0/cmake_WindowsToolchain that referenced this pull request Mar 10, 2026
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