Commit 53f4f9a
committed
Carry the vcpkg root under a name vcvars does not own
The six Windows jobs installed Boost into one vcpkg and then pointed CMake at
another. vcvars sets VCPKG_ROOT to the copy Visual Studio bundles, and the
msvc-dev-cmd step sits between the install and the configure, so the variable
the install step wrote was gone by the time the toolchain file and the prefix
path were built from it. The step logs show it outright: VCPKG_ROOT is
C:/vcpkg while boost-test is installing, and the VC\vcpkg under Visual Studio
18 by the time cmake runs.
Visual Studio 2022 does not do this, which is why it never showed anywhere but
on the runner.
The root now travels as STDC_VCPKG_ROOT, which nothing else writes.
This is also the correction to the previous commit. Caching the install state
rather than the built binaries is a real hazard and the change stands, but it
was not what made find_package come up empty: the diagnostic it added shows
BoostConfig.cmake present in C:/vcpkg the whole time.1 parent 523bc16 commit 53f4f9a
1 file changed
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | | - | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
115 | | - | |
116 | | - | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
137 | | - | |
| 140 | + | |
138 | 141 | | |
139 | | - | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
0 commit comments