From 5d85bd51822eb7d17583826e39ea2c25a89df911 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Mon, 3 Aug 2020 10:25:24 -0400 Subject: [PATCH] Fix prettify output not working in some cases 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!). --- scripts/cmake/vcpkg_prettify_command.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cmake/vcpkg_prettify_command.cmake b/scripts/cmake/vcpkg_prettify_command.cmake index ca04f9120e18b9..c12332b7a5965b 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})