mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-08 00:22:50 +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)
|
macro(vcpkg_prettify_command INPUT_VAR OUTPUT_VAR)
|
||||||
set(${OUTPUT_VAR} "")
|
set(${OUTPUT_VAR} "")
|
||||||
foreach(v ${${INPUT_VAR}})
|
foreach(v ${${INPUT_VAR}})
|
||||||
if(${v} MATCHES "( )")
|
if(v MATCHES "( )")
|
||||||
list(APPEND ${OUTPUT_VAR} \"${v}\")
|
list(APPEND ${OUTPUT_VAR} "\"${v}\"")
|
||||||
else()
|
else()
|
||||||
list(APPEND ${OUTPUT_VAR} ${v})
|
list(APPEND ${OUTPUT_VAR} "${v}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
list(JOIN ${OUTPUT_VAR} " " ${OUTPUT_VAR})
|
list(JOIN ${OUTPUT_VAR} " " ${OUTPUT_VAR})
|
||||||
|
Loading…
Reference in New Issue
Block a user