Commit 0fd801c
Normalize Python_SITEARCH before passing to find_package
vcpkg overrides find_package with a macro that stores \${ARGN} in a
double-quoted string. Textual macro substitution causes the value to
be re-parsed as a string literal, so a Windows path whose components
start with a letter (e.g. \build_bot -> \b) triggers CMake's CMP0010
invalid-escape-sequence error. Normalizing with file(TO_CMAKE_PATH)
converts backslashes to forward slashes before the path reaches the
macro.
No upstream vcpkg issue exists for this as of 2026-02-25.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8e897b6 commit 0fd801c
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
| |||
0 commit comments