aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2021-10-13 08:07:28 +0800
committerGitHub <noreply@github.com>2021-10-12 17:07:28 -0700
commitb8c39998eaf82ed3b397cfb73063b6810772c365 (patch)
tree3acf48e05435c1ff979cd6b75a5c336f5bab78dd
parent681e307e105f9e24014e18b868bcafd8a5b864f8 (diff)
downloadvcpkg-b8c39998eaf82ed3b397cfb73063b6810772c365.tar.gz
vcpkg-b8c39998eaf82ed3b397cfb73063b6810772c365.zip
[vcpkg_from_github] Fix parse error on OSX (#20650)
-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 2dae0ba50..f587b20ae 100644
--- a/scripts/cmake/vcpkg_from_github.cmake
+++ b/scripts/cmake/vcpkg_from_github.cmake
@@ -160,7 +160,7 @@ function(vcpkg_from_github)
# Parse the github refs response with regex.
# TODO: add json-pointer support to vcpkg
file(READ "${archive_version}" version_contents)
- if(NOT version_contents MATCHES [["sha":"([a-f0-9]+)"]])
+ if(NOT version_contents MATCHES [["sha":(\ *)"([a-f0-9]+)"]])
message(FATAL_ERROR "Failed to parse API response from '${version_url}':
${version_contents}