diff options
| author | huangqinjin <huangqinjin@gmail.com> | 2019-06-06 05:23:09 +0800 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-06-05 14:23:09 -0700 |
| commit | 8ad8f08836f2982534535b9293fba003f4b12074 (patch) | |
| tree | 7bcd3d1164d68f3f47ec6c3ca613d6bb06caa2c7 /scripts | |
| parent | 35d78d5f76dfa4657dc64dd0468b44d01860346e (diff) | |
| download | vcpkg-8ad8f08836f2982534535b9293fba003f4b12074.tar.gz vcpkg-8ad8f08836f2982534535b9293fba003f4b12074.zip | |
[vcpkg] Fix install from head when no-downloads (#6653)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/cmake/vcpkg_from_github.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_from_github.cmake b/scripts/cmake/vcpkg_from_github.cmake index 48bfd828a..c0d657bbc 100644 --- a/scripts/cmake/vcpkg_from_github.cmake +++ b/scripts/cmake/vcpkg_from_github.cmake @@ -161,7 +161,7 @@ function(vcpkg_from_github) # Parse the github refs response with regex. # TODO: use some JSON swiss-army-knife utility instead. - file(READ "${ARCHIVE_VERSION}" _contents) + file(READ "${downloaded_file_path}.version" _contents) string(REGEX MATCH "\"sha\": \"[a-f0-9]+\"" x "${_contents}") string(REGEX REPLACE "\"sha\": \"([a-f0-9]+)\"" "\\1" _version ${x}) |
