mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 04:43:02 +08:00
[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!).
This commit is contained in:
parent
6659efca6a
commit
2ade39048c
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user