aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake/vcpkg_from_git.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_git.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_git.cmake')
-rw-r--r--scripts/cmake/vcpkg_from_git.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_from_git.cmake b/scripts/cmake/vcpkg_from_git.cmake
index f114f6fc6..860e314c4 100644
--- a/scripts/cmake/vcpkg_from_git.cmake
+++ b/scripts/cmake/vcpkg_from_git.cmake
@@ -36,6 +36,8 @@
##
## * [fdlibm](https://github.com/Microsoft/vcpkg/blob/master/ports/fdlibm/portfile.cmake)
+include(vcpkg_execute_in_download_mode)
+
function(vcpkg_from_git)
set(oneValueArgs OUT_SOURCE_PATH URL REF)
set(multipleValuesArgs PATCHES)
@@ -78,7 +80,7 @@ function(vcpkg_from_git)
WORKING_DIRECTORY ${DOWNLOADS}/git-tmp
LOGNAME git-fetch-${TARGET_TRIPLET}
)
- _execute_process(
+ vcpkg_execute_in_download_mode(
COMMAND ${GIT} rev-parse FETCH_HEAD
OUTPUT_VARIABLE REV_PARSE_HEAD
ERROR_VARIABLE REV_PARSE_HEAD