File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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
9296set(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")
9599if(NOT EXISTS ${dest_file})
96100 file(DOWNLOAD ${url} ${dest_file} EXPECTED_HASH SHA256=${expected_hash})
97101else()
@@ -162,7 +166,7 @@ cd cmake-FindVcvars
162166
163167expected_hash=$(git show $tag:FindVcvars.cmake | sha256sum | cut -d" " -f1) && \
164168sed -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 && \
166170git add README.md && \
167171git commit -m "README: Update release and expected_hash"
168172```
You can’t perform that action at this time.
0 commit comments