Skip to content

Commit ef9f2f1

Browse files
committed
README: Update release and expected_hash
Also update sed expression to fix update of download link to account for version with two decimals.
1 parent fae07b3 commit ef9f2f1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ For reference, the associated merge request is https://gitlab.kitware.com/cmake/
2323

2424
<!-- CHANGELOG-INSERT -->
2525

26+
### v1.11
27+
28+
* feat(vsvars): Refactor vcvars discovery with reusable function
29+
2630
### v1.10
2731

2832
* feat(Vcvars): Add MSVC version mappings by toolset and Visual Studio version
@@ -90,8 +94,8 @@ There are few possible approaches:
9094
```cmake
9195
# Download FindVcvars.cmake
9296
set(dest_file "${CMAKE_CURRENT_BINARY_DIR}/FindVcvars.cmake")
93-
set(expected_hash "da1df73a82135b18e0b69baaf8659c7f18a5a14e7f90c9d14243fedbb6731bd7")
94-
set(url "https://raw.githubusercontent.com/scikit-build/cmake-FindVcvars/v1.10/FindVcvars.cmake")
97+
set(expected_hash "cfac3aa8a306906ca3c90ff476dcc2e8f01f41ce8c4b3d2ebb3ae539c1a665c0")
98+
set(url "https://raw.githubusercontent.com/scikit-build/cmake-FindVcvars/v1.11/FindVcvars.cmake")
9599
if(NOT EXISTS ${dest_file})
96100
file(DOWNLOAD ${url} ${dest_file} EXPECTED_HASH SHA256=${expected_hash})
97101
else()
@@ -162,7 +166,7 @@ cd cmake-FindVcvars
162166
163167
expected_hash=$(git show $tag:FindVcvars.cmake | sha256sum | cut -d" " -f1) && \
164168
sed -E "s/set\(expected_hash.+\)/set\(expected_hash \"$expected_hash\"\)/g" -i README.md && \
165-
sed -E "s/v[0-9](\.[0-9])+\/FindVcvars.cmake/$tag\/FindVcvars.cmake/g" -i README.md && \
169+
sed -E "s/v[0-9](\.[0-9]+)+\/FindVcvars.cmake/$tag\/FindVcvars.cmake/g" -i README.md && \
166170
git add README.md && \
167171
git commit -m "README: Update release and expected_hash"
168172
```

0 commit comments

Comments
 (0)