Skip to content

Commit

Permalink
[vcpkg] Fix prettify output not working in some cases (#12717)
Browse files Browse the repository at this point in the history
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!).
  • Loading branch information
Deadpikle committed Aug 5, 2020
1 parent 6659efc commit 2ade390
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cmake/vcpkg_prettify_command.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 2ade390

Please sign in to comment.