diff options
| author | Deadpikle <Deadpikle@users.noreply.github.com> | 2020-08-05 16:03:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-05 13:03:34 -0700 |
| commit | 2ade39048c4562de89258dbde1d9fb8675e3d0cc (patch) | |
| tree | a19f59765e2a9614525be176f7b66beaab29edf8 /scripts/cmake | |
| parent | 6659efca6a6294da5c56e33365becfd69f98ea3f (diff) | |
| download | vcpkg-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.cmake | 6 |
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})
|
