aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake/vcpkg_from_gitlab.cmake
diff options
context:
space:
mode:
authorjgehw <44170764+jgehw@users.noreply.github.com>2020-09-09 19:36:58 +0200
committerGitHub <noreply@github.com>2020-09-09 10:36:58 -0700
commit8b7e946c55507d491887bbfeb34453ff0c75c751 (patch)
tree08bfa65706900acdc50fdb59fb9137ae2b555708 /scripts/cmake/vcpkg_from_gitlab.cmake
parentbff4dd9c944b9fbad40ec1a36d7c2365287ce0a6 (diff)
downloadvcpkg-8b7e946c55507d491887bbfeb34453ff0c75c751.tar.gz
vcpkg-8b7e946c55507d491887bbfeb34453ff0c75c751.zip
[execute_process] Don't strip embedded semicolons (#12926)
Diffstat (limited to 'scripts/cmake/vcpkg_from_gitlab.cmake')
-rw-r--r--scripts/cmake/vcpkg_from_gitlab.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_from_gitlab.cmake b/scripts/cmake/vcpkg_from_gitlab.cmake
index 44581ac6f..bb908e48a 100644
--- a/scripts/cmake/vcpkg_from_gitlab.cmake
+++ b/scripts/cmake/vcpkg_from_gitlab.cmake
@@ -61,6 +61,9 @@
## * [folly](https://github.com/Microsoft/vcpkg/blob/master/ports/folly/portfile.cmake#L15)
## * [z3](https://github.com/Microsoft/vcpkg/blob/master/ports/z3/portfile.cmake#L13)
##
+
+include(vcpkg_execute_in_download_mode)
+
function(vcpkg_from_gitlab)
set(oneValueArgs OUT_SOURCE_PATH GITLAB_URL USER REPO REF SHA512 HEAD_REF)
set(multipleValuesArgs PATCHES)
@@ -163,7 +166,7 @@ function(vcpkg_from_gitlab)
endif()
# There are issues with the Gitlab API project paths being URL-escaped, so we use git here to get the head revision
- _execute_process(COMMAND ${GIT} ls-remote
+ vcpkg_execute_in_download_mode(COMMAND ${GIT} ls-remote
"${GITLAB_LINK}.git" "${_vdud_HEAD_REF}"
RESULT_VARIABLE _git_result
OUTPUT_VARIABLE _git_output