aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake
diff options
context:
space:
mode:
authorDeadpikle <Deadpikle@users.noreply.github.com>2020-08-05 16:03:34 -0400
committerGitHub <noreply@github.com>2020-08-05 13:03:34 -0700
commit2ade39048c4562de89258dbde1d9fb8675e3d0cc (patch)
treea19f59765e2a9614525be176f7b66beaab29edf8 /scripts/cmake
parent6659efca6a6294da5c56e33365becfd69f98ea3f (diff)
downloadvcpkg-2ade39048c4562de89258dbde1d9fb8675e3d0cc.tar.gz
vcpkg-2ade39048c4562de89258dbde1d9fb8675e3d0cc.zip
[vcpkg] Fix prettify output not working in some cases (#12717)
If you changed VCPKG_TARGET_ARCHITECTURE to use x86_64, the prettify command failed to parse things properly. This was found during the changes made for #12657 and was completed by @strega-nil (thanks!).
Diffstat (limited to 'scripts/cmake')
-rw-r--r--scripts/cmake/vcpkg_prettify_command.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cmake/vcpkg_prettify_command.cmake b/scripts/cmake/vcpkg_prettify_command.cmake
index ca04f9120..c12332b7a 100644
--- a/scripts/cmake/vcpkg_prettify_command.cmake
+++ b/scripts/cmake/vcpkg_prettify_command.cmake
@@ -16,10 +16,10 @@
macro(vcpkg_prettify_command INPUT_VAR OUTPUT_VAR)
set(${OUTPUT_VAR} "")
foreach(v ${${INPUT_VAR}})
- if(${v} MATCHES "( )")
- list(APPEND ${OUTPUT_VAR} \"${v}\")
+ if(v MATCHES "( )")
+ list(APPEND ${OUTPUT_VAR} "\"${v}\"")
else()
- list(APPEND ${OUTPUT_VAR} ${v})
+ list(APPEND ${OUTPUT_VAR} "${v}")
endif()
endforeach()
list(JOIN ${OUTPUT_VAR} " " ${OUTPUT_VAR})