aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake/vcpkg_from_github.cmake
diff options
context:
space:
mode:
authorJoachim Gehweiler <44170764+jgehw@users.noreply.github.com>2020-10-27 03:30:27 +0100
committerGitHub <noreply@github.com>2020-10-26 19:30:27 -0700
commit0ff75ac80b9a3770afb3d2971c572628d80a631e (patch)
tree0d47d24d70e283449e8b16eef790c727d8a8deb5 /scripts/cmake/vcpkg_from_github.cmake
parent839f53338202245c8756747011c40ed4926d20f4 (diff)
downloadvcpkg-0ff75ac80b9a3770afb3d2971c572628d80a631e.tar.gz
vcpkg-0ff75ac80b9a3770afb3d2971c572628d80a631e.zip
[vcpkg] Fix more cases of semicolon mishandling in "scripts" - follow-up to PR #12926 (#13968)
Diffstat (limited to 'scripts/cmake/vcpkg_from_github.cmake')
-rw-r--r--scripts/cmake/vcpkg_from_github.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_from_github.cmake b/scripts/cmake/vcpkg_from_github.cmake
index c8710998b..514151bbd 100644
--- a/scripts/cmake/vcpkg_from_github.cmake
+++ b/scripts/cmake/vcpkg_from_github.cmake
@@ -68,7 +68,8 @@
function(vcpkg_from_github)
set(oneValueArgs OUT_SOURCE_PATH REPO REF SHA512 HEAD_REF GITHUB_HOST AUTHORIZATION_TOKEN)
set(multipleValuesArgs PATCHES)
- cmake_parse_arguments(_vdud "" "${oneValueArgs}" "${multipleValuesArgs}" ${ARGN})
+ # parse parameters such that semicolons in options arguments to COMMAND don't get erased
+ cmake_parse_arguments(PARSE_ARGV 0 _vdud "" "${oneValueArgs}" "${multipleValuesArgs}")
if(NOT DEFINED _vdud_OUT_SOURCE_PATH)
message(FATAL_ERROR "OUT_SOURCE_PATH must be specified.")