Skip to content

Commit

Permalink
[vcpkg] Fix install from head when no-downloads (#6653)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqinjin authored and cbezault committed Jun 5, 2019
1 parent 35d78d5 commit 8ad8f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cmake/vcpkg_from_github.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit 8ad8f08

Please sign in to comment.