aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake/vcpkg_from_github.cmake
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-06-14 07:55:33 +0800
committermyd7349 <myd7349@gmail.com>2019-06-14 07:55:33 +0800
commit1e9b8dd1b420aac64cbdd8bb905c02fa3c651b17 (patch)
tree284efa9cf01657928d184e194a39e7cdee682e04 /scripts/cmake/vcpkg_from_github.cmake
parent7cd35529736837e2e74dad231717bda76327ac79 (diff)
parentb03f62e0ebc1b5515bc8a1f41f3bfe9eca6589d4 (diff)
downloadvcpkg-1e9b8dd1b420aac64cbdd8bb905c02fa3c651b17.tar.gz
vcpkg-1e9b8dd1b420aac64cbdd8bb905c02fa3c651b17.zip
Merge branch 'master' into rdkafka-init
Diffstat (limited to 'scripts/cmake/vcpkg_from_github.cmake')
-rw-r--r--scripts/cmake/vcpkg_from_github.cmake2
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})