From ec3065b35407a4b027552dbaa6e950fec1192c64 Mon Sep 17 00:00:00 2001 From: wang radium <741814620@qq.com> Date: Sat, 21 Mar 2026 10:08:36 +0800 Subject: [PATCH] Build: Add missing quote around TRINITY_BUILD_HOST_SYSTEM_RELEASE variable during revision_data.h generation (#31732) * Fixes more edge cases with localized output from Get-CimInstance --- cmake/genrev.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/genrev.cmake b/cmake/genrev.cmake index 07f3b8d4d8..9f219a047a 100644 --- a/cmake/genrev.cmake +++ b/cmake/genrev.cmake @@ -134,7 +134,7 @@ if(WIN32) OUTPUT_STRIP_TRAILING_WHITESPACE ) # Remove "Microsoft Windows" from the result - string(REGEX REPLACE "^.* Windows " "" TRINITY_BUILD_HOST_SYSTEM_RELEASE ${TRINITY_BUILD_HOST_SYSTEM_RELEASE}) + string(REGEX REPLACE "^.* Windows " "" TRINITY_BUILD_HOST_SYSTEM_RELEASE "${TRINITY_BUILD_HOST_SYSTEM_RELEASE}") endif() if(CMAKE_SCRIPT_MODE_FILE)